aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/include/functions.php')
-rw-r--r--admin/include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 0f35c2798..22361a579 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -279,7 +279,7 @@ function check_favorites( $user_id )
{
array_push( $picture_cat, $picture_row['category_id'] );
}
- if ( count( array_diff( $picture_cat, $restricted_cat ) ) > 0 )
+ if ( count( array_diff( $picture_cat, $restricted_cat ) ) == 0 )
{
$query = 'DELETE FROM '.PREFIX_TABLE.'favorites';
$query.= ' WHERE image_id = '.$row['image_id'];