]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use internal quoting code for manual query
authorEvan Prodromou <evan@controlezvous.ca>
Sun, 22 Jun 2008 15:06:33 +0000 (11:06 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Sun, 22 Jun 2008 15:06:33 +0000 (11:06 -0400)
darcs-hash:20080622150633-34904-2e26094807f989a62261f2247d0a53995eb5bac5.gz

classes/User.php

index e8281a72318a3222f6efaf1e35ee09dc1faaf3d8..e8667d6975febd0fb51a087b82a8fdbfd686f3fc 100644 (file)
@@ -68,7 +68,7 @@ class User extends DB_DataObject
                $parts = array();
                foreach (array('nickname', 'email') as $k) {
                        if ($this->$k != $orig->$k) {
-                               $parts[] = $k . '="' . $this->$k . '"';
+                               $parts[] = $k . '=' . $this->_quote($this->$k);
                        }
                }
                if (count($parts) == 0) {