diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-10-05 10:42:54 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-10-05 10:42:54 +0000 |
commit | c7910b967944d3b0c7b1ee7838287d3562eba85b (patch) | |
tree | ade74b4004e05121fa4c83f596864e6b83fb259c /admin/group_perm.php | |
parent | 907e07ce197a71ec78661f6bdde341314069992c (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/group_perm.php')
-rw-r--r-- | admin/group_perm.php | 10 |
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 ) ); |