[pLog-svn] r6977 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu Feb 4 17:00:36 EST 2010
Author: jondaley
Date: 2010-02-04 17:00:35 -0500 (Thu, 04 Feb 2010)
New Revision: 6977
Modified:
plog/branches/lifetype-1.2/class/dao/blogs.class.php
Log:
duh, let's return something if it *does* match
Modified: plog/branches/lifetype-1.2/class/dao/blogs.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/blogs.class.php 2010-02-04 21:55:02 UTC (rev 6976)
+++ plog/branches/lifetype-1.2/class/dao/blogs.class.php 2010-02-04 22:00:35 UTC (rev 6977)
@@ -53,11 +53,12 @@
$stuff = $this->get( "custom_domain", $blogDomain,
CACHE_BLOGIDBYDOMAIN,
Array( CACHE_BLOGINFOS => "getId" ));
- if(!$stuff){
- return $this->get("custom_domain", preg_replace("/^www./", "", $blogDomain),
- CACHE_BLOGIDBYDOMAIN,
- Array( CACHE_BLOGINFOS => "getId" ));
- }
+ if($stuff)
+ return $stuff;
+
+ return $this->get("custom_domain", preg_replace("/^www./", "", $blogDomain),
+ CACHE_BLOGIDBYDOMAIN,
+ Array( CACHE_BLOGINFOS => "getId" ));
}
/**
More information about the pLog-svn
mailing list