]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Found a remnant staticGet call
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 15:39:25 +0000 (17:39 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 15:39:25 +0000 (17:39 +0200)
classes/Notice.php

index 9246c26919ac13897a22e261e5cc3b044f2fb3ad..8c9957958b943a9ef9cac8a8c289549a520e9df8 100644 (file)
@@ -979,12 +979,14 @@ class Notice extends Managed_DataObject
 
         // Force the scope for private groups
         foreach ($groups as $group_id) {
-            $group = User_group::staticGet('id', $group_id);
-            if ($group instanceof User_group) {
+            try {
+                $group = User_group::getByID($group_id);
                 if ($group->force_scope) {
                     $scope |= Notice::GROUP_SCOPE;
                     break;
                 }
+            } catch (Exception $e) {
+                common_log(LOG_ERR, 'Notice figureOutScope threw exception: '.$e->getMessage());
             }
         }