From: Ben Klang Date: Mon, 11 Jan 2010 16:11:05 +0000 (-0500) Subject: Operator: Fix accountcode array construction X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=40eb6fe0d66ee4cbf0326bfab7e73e3bb403ac2e;p=horde.git Operator: Fix accountcode array construction --- diff --git a/operator/lib/Operator.php b/operator/lib/Operator.php index 9e05b4c53..efba0efe5 100644 --- a/operator/lib/Operator.php +++ b/operator/lib/Operator.php @@ -89,7 +89,7 @@ class Operator { function getAccountCodes($permfilter = false) { global $operator; - if (empty($operator)) { + if (empty($operator) || empty($operator->driver)) { $operator = new Operator_Application(array('init' => true)); } @@ -141,9 +141,8 @@ class Operator { throw new Operator_Exception(_("You do not have permission to view any accounts.")); } } else { - $accountcodes = array_merge($keys, $values); + $accountcodes = array_combine($keys, $values); } - return $accountcodes; }