From acf562b3ddaa6fbe1727fe301a50f1e9b5f26fd2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 22 Jun 2008 11:16:11 -0400 Subject: use updateKeys() for updating the user darcs-hash:20080622151611-34904-1d952df08b5247ab391bb76fd50d7b90498f0c96.gz --- classes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') 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 . -- cgit v1.2.3-54-g00ecf