[pLog-svn] r3737 - plugins/trunk/contentfilter/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Tue Jul 18 21:44:53 GMT 2006


Author: oscar
Date: 2006-07-18 21:44:52 +0000 (Tue, 18 Jul 2006)
New Revision: 3737

Modified:
   plugins/trunk/contentfilter/class/dao/filteredcontents.class.php
Log:
fixed a crash issue


Modified: plugins/trunk/contentfilter/class/dao/filteredcontents.class.php
===================================================================
--- plugins/trunk/contentfilter/class/dao/filteredcontents.class.php	2006-07-18 06:41:48 UTC (rev 3736)
+++ plugins/trunk/contentfilter/class/dao/filteredcontents.class.php	2006-07-18 21:44:52 UTC (rev 3737)
@@ -33,12 +33,12 @@
         function getBlogFilteredContents( $blogId, $includeGlobal = false )
         {
             $data = $this->getMany( "blog_id", $blogId, CACHE_FILTERED_CONTENT_BYBLOG );
+            if( !$data )
+                $data = Array();
+
             if( $includeGlobal )
                 $data = array_merge( $data, $this->getBlogFilteredContents( "0", false ));
                 
-            if( !$data )
-                $data = Array();
-                
             return( $data );
         }
 



More information about the pLog-svn mailing list