mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
Every user (including the webmaster) must have his favorites checked
git-svn-id: http://piwigo.org/svn/trunk@169 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -85,15 +85,16 @@ if ( isset( $_POST['submit'] ) )
|
||||
$query.= ';';
|
||||
mysql_query( $query );
|
||||
|
||||
// checking users favorites
|
||||
$query = 'SELECT id';
|
||||
$query.= ' FROM '.PREFIX_TABLE.'users';
|
||||
$query.= " WHERE username != '".$conf['webmaster']."'";
|
||||
$query.= ';';
|
||||
$result = mysql_query( $query );
|
||||
while ( $row = mysql_fetch_array ( $result ) )
|
||||
while ( $row = mysql_fetch_array( $result ) )
|
||||
{
|
||||
check_favorites( $row['id'] );
|
||||
}
|
||||
|
||||
$vtp->addSession( $sub, 'confirmation' );
|
||||
$url = add_session_id( './admin.php?page=cat_list' );
|
||||
$vtp->setVar( $sub, 'confirmation.back_url', $url );
|
||||
|
||||
Reference in New Issue
Block a user