From: CiaranG Date: Tue, 19 Aug 2008 07:13:21 +0000 (-0400) Subject: Fix bug in xmpp on/off (ticket #528) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ebe35f56aecbd31f01c6d3e59de6b81136688894;p=quix0rs-gnu-social.git Fix bug in xmpp on/off (ticket #528) darcs-hash:20080819071321-f6e2c-a7ee326669eba917fff8dd37c85c13db46c93f19.gz --- diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 1aa789e7e7..4332b823f5 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -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 .