summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2008-08-19 03:13:21 -0400
committerCiaranG <ciaran@ciarang.com>2008-08-19 03:13:21 -0400
commitebe35f56aecbd31f01c6d3e59de6b81136688894 (patch)
tree5b723274ad0c6770e7be731c0d485fda25b7b71b /scripts
parent5022a9efb957c6d308d3c729739c2c6c48694002 (diff)
Fix bug in xmpp on/off (ticket #528)
darcs-hash:20080819071321-f6e2c-a7ee326669eba917fff8dd37c85c13db46c93f19.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xmppdaemon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index 1aa789e7e..4332b823f 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 .