From ebe35f56aecbd31f01c6d3e59de6b81136688894 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Tue, 19 Aug 2008 03:13:21 -0400 Subject: [PATCH] Fix bug in xmpp on/off (ticket #528) darcs-hash:20080819071321-f6e2c-a7ee326669eba917fff8dd37c85c13db46c93f19.gz --- scripts/xmppdaemon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .