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

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Jan 8 17:16:33 GMT 2005


Author: oscar
Date: 2005-01-08 17:16:33 +0000 (Sat, 08 Jan 2005)
New Revision: 693

Modified:
   plog/trunk/class/dao/article.class.php
Log:
removed an annoying warning message

Modified: plog/trunk/class/dao/article.class.php
===================================================================
--- plog/trunk/class/dao/article.class.php	2005-01-08 17:03:59 UTC (rev 692)
+++ plog/trunk/class/dao/article.class.php	2005-01-08 17:16:33 UTC (rev 693)
@@ -256,7 +256,7 @@
 		function getComments( $onlyActive = true )
 		{
 			// if we only want to return the active ones, then we have to loop through
-			// the array once more
+			// the array once more			
 			if( $onlyActive ) {
 				$comments = Array();
 				foreach( $this->_comments as $comment ) {
@@ -426,6 +426,8 @@
 		function setComments( $comments )
 		{
 			$this->_comments = $comments;
+			if( !is_array( $this->_comments ))
+				$this->_comments = Array();
 			
 			return true;
 		}




More information about the pLog-svn mailing list