X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Femails.inc.php;h=432b4854dfe1ca6ebc3a798d364af74043911bf2;hb=efe597c5795234724bc3df508bd628f9860a9c32;hp=db8779155623aea150ec49ed81d85297b62acb56;hpb=a0c034efcf0777541e087500e94853f515cda1ca;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index db87791..432b485 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -299,18 +299,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.