X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fimchannel.php;h=2a4e51af928ca98be2ea6f6d547d6356f315974d;hb=746e658f3e398948fe8c3f047e2b35ef6aa7ebd5;hp=61355a429cdd31f82380a081205d68c0b47f24ac;hpb=b716d01a41c54c06676a1e54a48c36e05755a247;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) .