aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-05 10:41:33 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-05 10:41:33 +0000
commit907e07ce197a71ec78661f6bdde341314069992c (patch)
tree269034773c8720b8ee06256096c7e5875ff0405d /admin
parentfbe8d191b2d79be23587dce0eb5f2191a4680e5d (diff)
Every user (including the webmaster) must have his favorites checked
git-svn-id: http://piwigo.org/svn/trunk@169 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php5
1 files 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 );