Fix the issue: Advance Search not working

This commit is contained in:
nafisaiudev 2014-11-27 12:18:28 +00:00
parent 15bc577ca3
commit 304cf83562

View file

@ -488,7 +488,8 @@ class CBPhotos
if($p['title'])
{
$title_tag = " ".tbl('photos.photo_title')." LIKE '%".$p['title']."%'";
// $title_tag = " ".tbl('photos.photo_title')." LIKE '%".$p['title']."%'";
$title_tag = " ".('photos.photo_title')." LIKE '%".$p['title']."%'";
}
if($p['tags'])
@ -669,7 +670,7 @@ class CBPhotos
$result = $db->count(table("photos"),"photo_id",$cond);
}
#pr( $query, true );
##pr( $query, true );
if($p['assign'])
assign($p['assign'],$result);