From 907e07ce197a71ec78661f6bdde341314069992c Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 5 Oct 2003 10:41:33 +0000 Subject: [PATCH] Every user (including the webmaster) must have his favorites checked git-svn-id: http://piwigo.org/svn/trunk@169 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_modify.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/cat_modify.php b/admin/cat_modify.php index 396c2d940..5cd777979 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -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 );