diff options
author | mistic100 <mistic@piwigo.org> | 2012-12-08 17:36:03 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-12-08 17:36:03 +0000 |
commit | bfd46560dbf62d9ce4c2fbeeb606618a32e056d2 (patch) | |
tree | 44e16b545e22de425ba2e1b119dd4a6f34da278a | |
parent | d0bfc8cb1f0345bc84e4768a84eaeb7537cf54e7 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions_user.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'].')'; |