X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=include%2Femails.inc.php;h=de05ed2d717de038e1bec432106d9d3ada4b368a;hb=e46cf8c46341b447cc3701c8afcc9baec3da11e5;hp=cd7e0a056c3a048e420f8313a2faae8036e5e7f7;hpb=1dc71da137a384e771723b8a893539a7f5cc9fab;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index cd7e0a0..de05ed2 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -383,18 +383,18 @@ class EmailStorage extends Email // Retrieves the current list of actives storages. private function get_storages() { - $res = XDB::query("SELECT mail_storage - FROM auth_user_md5 - WHERE user_id = {?}", $this->user->id()); - return new PlFlagSet($res->fetchOneCell()); + return new PlFlagSet(XDB::fetchOneCell('SELECT storage + FROM email_options + WHERE uid = {?}', + $this->user->id())); } // Updates the list of active storages. private function set_storages($storages) { - XDB::execute("UPDATE auth_user_md5 - SET mail_storage = {?} - WHERE user_id = {?}", $storages, $this->user->id()); + XDB::execute("UPDATE email_options + SET storage = {?} + WHERE uid = {?}", $storages, $this->user->id()); } // Returns the list of allowed storages for the @p user.