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:
z0rglub
2003-10-05 10:41:33 +00:00
parent fbe8d191b2
commit 907e07ce19
+3 -2
View File
@@ -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 );