Fix the issue: Advance Search not working
This commit is contained in:
parent
15bc577ca3
commit
304cf83562
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue