summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-18 09:22:08 -0700
committerBrion Vibber <brion@pobox.com>2010-03-18 09:24:55 -0700
commit515cdf28a83eda5cc82f0c423099a36c0168dbb6 (patch)
tree13d893ff3fffed35eb159cc277d45f239fc117dc /classes/User.php
parent425ddcaa265f5b305176ca0bcd48833a0ef0c75a (diff)
Ensure that DB connection is active at start of User::updateKeys() and Foreign_user::updateKeys(); calls to $this->_quote() require a live connection object and don't lazy-initialize themselves.
May fix WSOD when changing incoming email address.
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 13f63010f..0b25b71a0 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -91,6 +91,7 @@ class User extends Memcached_DataObject
function updateKeys(&$orig)
{
+ $this->_connect();
$parts = array();
foreach (array('nickname', 'email', 'jabber', 'incomingemail', 'sms', 'carrier', 'smsemail', 'language', 'timezone') as $k) {
if (strcmp($this->$k, $orig->$k) != 0) {