diff options
author | alecpl <alec@alec.pl> | 2010-03-01 19:04:34 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-01 19:04:34 +0000 |
commit | 929a508d801d9434c8d98dccd0311e3a707303ba (patch) | |
tree | 3219bab9df6bb5d09aaf1cd5d6ba69e794678406 /program/include/rcube_user.php | |
parent | a72ad657241fd35ae7e0f2cbdec210caa9554695 (diff) |
- Improve performance by avoiding unnecessary updates to the session table (#1486325)
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r-- | program/include/rcube_user.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php index 127efa746..ab44cdca2 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -47,7 +47,7 @@ class rcube_user if ($id && !$sql_arr) { - $sql_result = $this->db->query("SELECT * FROM ".get_table_name('users')." WHERE user_id=?", $id); + $sql_result = $this->db->query("SELECT * FROM ".get_table_name('users')." WHERE user_id=?", $id); $sql_arr = $this->db->fetch_assoc($sql_result); } @@ -154,8 +154,7 @@ class rcube_user // get contacts from DB $sql_result = $this->db->query( "SELECT * FROM ".get_table_name('identities')." - WHERE del<>1 - AND user_id=? + WHERE del<>1 AND user_id=? $sql_add ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC, identity_id ASC", $this->ID); |