From: Michael J. Rubinsky Date: Tue, 24 Nov 2009 22:30:41 +0000 (-0500) Subject: Make sure $enums is defined X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=86be0409accd8e6e82cd739241b62e738124f0f0;p=horde.git Make sure $enums is defined --- diff --git a/kronolith/lib/Forms/CreateResource.php b/kronolith/lib/Forms/CreateResource.php index 3fef8dff0..9f8c3d34e 100644 --- a/kronolith/lib/Forms/CreateResource.php +++ b/kronolith/lib/Forms/CreateResource.php @@ -36,6 +36,7 @@ class Kronolith_CreateResourceForm extends Horde_Form { /* Get a list of available resource groups */ $driver = Kronolith::getDriver('Resource'); $groups = $driver->listResources(Horde_Perms::READ, array('type' => Kronolith_Resource::TYPE_GROUP)); + $enum = array(); foreach ($groups as $id => $group) { $enum[$id] = $group->get('name'); }