projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port survey.
[platal.git]
/
include
/
emails.inc.php
diff --git
a/include/emails.inc.php
b/include/emails.inc.php
index
db87791
..
e6ae449
100644
(file)
--- a/
include/emails.inc.php
+++ b/
include/emails.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-299,18
+299,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.