aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-24 22:57:36 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-24 22:57:36 +0000
commite39dc7c0ab3aef034bd5b8720b2b7ea1a21f96a7 (patch)
treee76950d656d2d9ce47c96bcd9ca726297b6baebc /admin/include
parentc882b2691591950624a6553811fdeda91aa50b04 (diff)
Php Warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@319 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index b761c36fe..84c7a93e7 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -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';