X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fimchannel.php;h=2a4e51af928ca98be2ea6f6d547d6356f315974d;hb=e8d1bb25469fe1ef0cbcb32c3022010997aca4b0;hp=61355a429cdd31f82380a081205d68c0b47f24ac;hpb=59043dca7fb6f974b11797c4d0f20e5b78b0611d;p=quix0rs-gnu-social.git diff --git a/lib/imchannel.php b/lib/imchannel.php index 61355a429c..2a4e51af92 100644 --- a/lib/imchannel.php +++ b/lib/imchannel.php @@ -68,6 +68,8 @@ class IMChannel extends Channel function setNotify($user, $notify) { + global $_PEAR; + $user_im_prefs = new User_im_prefs(); $user_im_prefs->transport = $this->imPlugin->transport; $user_im_prefs->user_id = $user->id; @@ -81,7 +83,7 @@ class IMChannel extends Channel $result = $user_im_prefs->update($original); if (!$result) { - $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError'); + $last_error = &$_PEAR->getStaticProperty('DB_DataObject','lastError'); common_log(LOG_ERR, 'Could not set notify flag to ' . $notify . ' for user ' . common_log_objstring($user) .