Fix scope.
authorJan Schneider <jan@horde.org>
Thu, 21 Oct 2010 19:59:53 +0000 (21:59 +0200)
committerJan Schneider <jan@horde.org>
Thu, 21 Oct 2010 20:18:40 +0000 (22:18 +0200)
whups/ticket/type.php

index 1a6df2c..40609c2 100644 (file)
@@ -28,7 +28,7 @@ class SetTypeStep1Form extends Horde_Form {
         $this->addVariable(_("Comment"), 'newcomment', 'longtext', false);
 
         /* Group restrictions. */
-        $groups = $injector->getInstance('Horde_Group');
+        $groups = $GLOBALS['injector']->getInstance('Horde_Group');
         $mygroups = $groups->getGroupMemberships($GLOBALS['registry']->getAuth());
         if ($mygroups) {
             foreach (array_keys($mygroups) as $gid) {