summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-22 11:16:11 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-22 11:16:11 -0400
commitacf562b3ddaa6fbe1727fe301a50f1e9b5f26fd2 (patch)
tree5668c69d79bc4ac52685cef0189a4d08f443b4b7 /classes
parent2b258b1a9ad9049c19f264187372553fe9b1c09d (diff)
use updateKeys() for updating the user
darcs-hash:20080622151611-34904-1d952df08b5247ab391bb76fd50d7b90498f0c96.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/User.php b/classes/User.php
index e8667d697..94240392e 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -68,12 +68,12 @@ class User extends DB_DataObject
$parts = array();
foreach (array('nickname', 'email') as $k) {
if ($this->$k != $orig->$k) {
- $parts[] = $k . '=' . $this->_quote($this->$k);
+ $parts[] = $k . ' = ' . $this->_quote($this->$k);
}
}
if (count($parts) == 0) {
# No changes
- return;
+ return true;
}
$toupdate = implode(', ', $parts);
$qry = 'UPDATE ' . $this->tableName() . ' SET ' . $toupdate .