aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/group_perm.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/admin/group_perm.php b/admin/group_perm.php
index 1e75c87a1..12bba0745 100644
--- a/admin/group_perm.php
+++ b/admin/group_perm.php
@@ -51,6 +51,16 @@ if ( isset( $_POST['submit'] ) )
mysql_query ( $query );
}
}
+ // checking users favorites
+ $query = 'SELECT id';
+ $query.= ' FROM '.PREFIX_TABLE.'users';
+ $query.= ';';
+ $result = mysql_query( $query );
+ while ( $row = mysql_fetch_array( $result ) )
+ {
+ check_favorites( $row['id'] );
+ }
+ // confirmation display
$vtp->addSession( $sub, 'confirmation' );
$url = './admin.php?page=group_list';
$vtp->setVar( $sub, 'confirmation.back_url', add_session_id( $url ) );