From: Vincent Zanotti Date: Sat, 16 May 2009 12:50:22 +0000 (+0200) Subject: Fixes the mass email deactivation used in the admin user edition page. X-Git-Tag: xorg/0.10.1~49^2~5 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=20398e4220c18e3f255fe485e8ac73ff05f671e8;p=platal.git Fixes the mass email deactivation used in the admin user edition page. Signed-off-by: Vincent Zanotti --- diff --git a/include/emails.inc.php b/include/emails.inc.php index db87791..0ba8cf3 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -553,7 +553,7 @@ class Redirect { XDB::execute("UPDATE emails SET flags = 'disable' - WHERE flags = 'active' AND uid = {?}", $this->user->id); + WHERE flags = 'active' AND uid = {?}", $this->user->id()); foreach ($this->emails as &$mail) { if ($mail->active && $mail->has_disable()) { $mail->disabled = true; @@ -569,7 +569,7 @@ class Redirect { XDB::execute("UPDATE emails SET flags = 'active' - WHERE flags = 'disable' AND uid = {?}", $this->user->id); + WHERE flags = 'disable' AND uid = {?}", $this->user->id()); foreach ($this->emails as &$mail) { if ($mail->disabled) { $mail->active = true;