From 1895e2acd07786dbc79766c2442e31fd366de83e Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 8 Feb 2011 13:34:12 +0000 Subject: bug 2184 fixed: avoid SQL syntax error on "display only recently posted photos" filter. git-svn-id: http://piwigo.org/svn/trunk@9116 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_cats.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/category_cats.inc.php') diff --git a/include/category_cats.inc.php b/include/category_cats.inc.php index 6ca1817db..8e48927c9 100644 --- a/include/category_cats.inc.php +++ b/include/category_cats.inc.php @@ -51,7 +51,8 @@ else WHERE id_uppercat '.(!isset($page['category']) ? 'is NULL' : '= '.$page['category']['id']); } -$query.= get_sql_condition_FandF( +$query.= ' + '.get_sql_condition_FandF( array( 'visible_categories' => 'id', ), -- cgit v1.2.3