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:
z0rglub 2003-10-05 10:42:54 +00:00
parent 907e07ce19
commit c7910b9679

View file

@ -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 ) );