From: Vincent Zanotti Date: Mon, 30 Jun 2008 00:35:55 +0000 (+0200) Subject: Merge branch 'platal-0.9.17' X-Git-Tag: xorg/0.10.0~183 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=efccf7ed77120bf8b15ac54d4d447e842f032884;p=platal.git Merge branch 'platal-0.9.17' Signed-off-by: Vincent Zanotti --- efccf7ed77120bf8b15ac54d4d447e842f032884 diff --cc modules/profile.php index 72a6ea0,f663dc1..63e3370 --- a/modules/profile.php +++ b/modules/profile.php @@@ -159,8 -164,10 +165,10 @@@ class ProfileModule extends PLModul XDB::execute('DELETE FROM requests WHERE user_id = {?} AND type="photo"', S::v('uid')); - update_NbValid(); + $globals->updateNbValid(); } elseif (Env::v('cancel')) { + S::assert_xsrf_token(); + $sql = XDB::query('DELETE FROM requests WHERE user_id={?} AND type="photo"', S::v('uid'));