mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 11:32:52 +02:00
Php Warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@319 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -320,7 +320,10 @@ function check_favorites( $user_id )
|
||||
$row = mysql_fetch_array( mysql_query( $query ) );
|
||||
$status = $row['status'];
|
||||
// retrieving all the restricted categories for this user
|
||||
$restricted_cat = explode( ',', $row['forbidden_categories'] );
|
||||
if ( isset( $row['forbidden_categories'] ) )
|
||||
$restricted_cat = explode( ',', $row['forbidden_categories'] );
|
||||
else
|
||||
$restricted_cat = array();
|
||||
// retrieving all the favorites for this user and comparing their
|
||||
// categories to the restricted categories
|
||||
$query = 'SELECT image_id';
|
||||
|
||||
Reference in New Issue
Block a user