]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bug in xmpp on/off (ticket #528)
authorCiaranG <ciaran@ciarang.com>
Tue, 19 Aug 2008 07:13:21 +0000 (03:13 -0400)
committerCiaranG <ciaran@ciarang.com>
Tue, 19 Aug 2008 07:13:21 +0000 (03:13 -0400)
darcs-hash:20080819071321-f6e2c-a7ee326669eba917fff8dd37c85c13db46c93f19.gz

scripts/xmppdaemon.php

index 1aa789e7e7ca6c75d10c4bd0198b7e050ba68c3a..4332b823f572e147492eb70215e88bb0cd9f3e32 100755 (executable)
@@ -225,7 +225,7 @@ class XMPPDaemon {
                $orig = clone($user);
                $user->jabbernotify = $notify;
                $result = $user->update($orig);
-               if (!$id) {
+               if (!$result) {
                        $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
                        $this->log(LOG_ERR,
                                           'Could not set notify flag to ' . $notify .