[pLog-svn] r996 - plog/trunk/class/dao

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Feb 8 14:20:11 GMT 2005


Author: ork
Date: 2005-02-08 14:20:11 +0000 (Tue, 08 Feb 2005)
New Revision: 996

Modified:
   plog/trunk/class/dao/articles.class.php
Log:
oscar, please double check this change.. maybe there is even more
potential to optimize here :)


Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2005-02-08 13:26:19 UTC (rev 995)
+++ plog/trunk/class/dao/articles.class.php	2005-02-08 14:20:11 UTC (rev 996)
@@ -1191,9 +1191,15 @@
             // we can use this auxiliary function to help us...
             $date = Timestamp::getDateWithOffset( $query_result['date'], $this->_timeDiff );
 
-            $article = new Article( $postText['topic'],
-                                    $postText['text'],
+            // postText does not exist here.. maybe a copy/paste problem? 
+            // anyway.. it works without postText, so i'll just set this to
+            // null. oscar, pls double check.. original code:
+            // $article = new Article( $postText['topic'],
+            //                         $postText['text'],
+            //                         NULL,
+            $article = new Article( NULL,
                                     NULL,
+                                    NULL,
                                     $query_result['user_id'],
                                     $query_result['blog_id'],
                                     $query_result['status'],




More information about the pLog-svn mailing list