projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/fusionax' into account
[platal.git]
/
include
/
emails.inc.php
diff --git
a/include/emails.inc.php
b/include/emails.inc.php
index
cd7e0a0
..
de05ed2
100644
(file)
--- 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()
{
// 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)
{
}
// Updates the list of active storages.
private function set_storages($storages)
{
- XDB::execute("UPDATE
auth_user_md5
- SET
mail_
storage = {?}
- WHERE u
ser_
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.
}
// Returns the list of allowed storages for the @p user.