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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Jul 20 04:31:41 GMT 2006


Author: oscar
Date: 2006-07-20 04:31:40 +0000 (Thu, 20 Jul 2006)
New Revision: 3750

Modified:
   plog/trunk/class/dao/blogs.class.php
Log:
solved a bug when searching blogs


Modified: plog/trunk/class/dao/blogs.class.php
===================================================================
--- plog/trunk/class/dao/blogs.class.php	2006-07-19 22:52:07 UTC (rev 3749)
+++ plog/trunk/class/dao/blogs.class.php	2006-07-20 04:31:40 UTC (rev 3750)
@@ -191,13 +191,16 @@
 			if( $searchTerms != "" ){
 				$searchCond = $this->getSearchConditions( $searchTerms );
                 if( $where != "" )
-                    $where .= " AND " . $searchCond;
+                    $where .= " AND ";
+				$where .= $searchCond;
             }
 				
 			if( $where != "" )
 				$where = " WHERE $where";
 
             $query = "SELECT * FROM ".$this->getPrefix()."blogs $where ORDER BY id DESC";
+
+			print($query);
             
             $result = $this->Execute( $query, $page, $itemsPerPage );
 



More information about the pLog-svn mailing list