From bfd46560dbf62d9ce4c2fbeeb606618a32e056d2 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 8 Dec 2012 17:36:03 +0000 Subject: make sure get_sql_condition_FandF() doesn't generate corrupted SQL code git-svn-id: http://piwigo.org/svn/trunk@19333 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 60bdcd459..c71d4ae6c 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -1491,7 +1491,7 @@ function get_sql_condition_FandF( { $sql_list[]=$table_prefix.'level<='.$user['level']; } - else + else if ( !empty($user['image_access_list']) and !empty($user['image_access_type']) ) { $sql_list[]=$field_name.' '.$user['image_access_type'] .' ('.$user['image_access_list'].')'; -- cgit v1.2.3