X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Femails.inc.php;fp=include%2Femails.inc.php;h=fe46f377857dd2f2846bf9ff9affa414b3627cdc;hb=35be58456be0f138e9acc010bb6670fb0b1e1b5d;hp=9776d80b366e92eeb24101dc0d6d1962197ef454;hpb=228668301297a08062dc0624af06d2e9d544b868;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index 9776d80..fe46f37 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -523,7 +523,7 @@ class Email public function activate() { if ($this->inactive) { - if ($is_storage = in_array($this->type, self::get_allowed_storages($this->user))) { + if (in_array($this->type, self::get_allowed_storages($this->user))) { self::activate_storage($this->user, $this->type, $this->action); } else { XDB::execute('UPDATE email_redirect_account @@ -541,7 +541,7 @@ class Email public function deactivate() { if ($this->active) { - if ($is_storage = in_array($this->type, self::get_allowed_storages($this->user))) { + if (in_array($this->type, self::get_allowed_storages($this->user))) { self::deactivate_storage($this->user, $this->type); } else { XDB::execute('UPDATE email_redirect_account