aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-05 10:42:54 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-05 10:42:54 +0000
commitc7910b967944d3b0c7b1ee7838287d3562eba85b (patch)
treeade74b4004e05121fa4c83f596864e6b83fb259c /admin
parent907e07ce197a71ec78661f6bdde341314069992c (diff)
Checking favorites after modifying group permissions
git-svn-id: http://piwigo.org/svn/trunk@170 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-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 ) );