Checking favorites after modifying group permissions
git-svn-id: http://piwigo.org/svn/trunk@170 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
907e07ce19
commit
c7910b9679
1 changed files with 10 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue