]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/imchannel.php
Merge branch 'master' of gitorious.org:social/mainline
[quix0rs-gnu-social.git] / lib / imchannel.php
index 61355a429cdd31f82380a081205d68c0b47f24ac..2a4e51af928ca98be2ea6f6d547d6356f315974d 100644 (file)
@@ -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) .