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

mark at devel.lifetype.net mark at devel.lifetype.net
Wed May 14 03:34:41 EDT 2008


Author: mark
Date: 2008-05-14 03:34:40 -0400 (Wed, 14 May 2008)
New Revision: 6464

Modified:
   plog/trunk/class/dao/friends.class.php
Log:
Fixed some bugs.

Modified: plog/trunk/class/dao/friends.class.php
===================================================================
--- plog/trunk/class/dao/friends.class.php	2008-05-14 07:32:05 UTC (rev 6463)
+++ plog/trunk/class/dao/friends.class.php	2008-05-14 07:34:40 UTC (rev 6464)
@@ -188,6 +188,9 @@
         	$friends = $this->getFriends( $userId );
 
         	if( $this->delete( "user_id", $userId )) {
+        		if( !$friends ) {
+        			return false;
+        		}
 	        	foreach ( $friends as $friend ) {
 					$this->_cache->removeData( $friends->getId(), DaoCacheConstants::CACHE_FRIENDS );
 	        	}
@@ -311,7 +314,7 @@
 		 */
 		function getSearchConditions( $searchTerms )
 		{
-			return( "(description LIKE'%".LtDb::qstr( $searchTerms )."%')" );
+			return( "(description LIKE '%".LtDb::qstr( $searchTerms )."%')" );
 		}
 
 		/**
@@ -331,4 +334,4 @@
 
         }
     }
-?>
\ No newline at end of file
+?>



More information about the pLog-svn mailing list