Fix bug in xmpp on/off (ticket #528)

darcs-hash:20080819071321-f6e2c-a7ee326669eba917fff8dd37c85c13db46c93f19.gz
This commit is contained in:
CiaranG 2008-08-19 03:13:21 -04:00
parent 5022a9efb9
commit ebe35f56ae

View File

@ -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 .