projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3af85
)
Operator: Fix accountcode array construction
author
Ben Klang
<ben@alkaloid.net>
Mon, 11 Jan 2010 16:11:05 +0000
(11:11 -0500)
committer
Ben Klang
<ben@alkaloid.net>
Mon, 11 Jan 2010 16:11:05 +0000
(11:11 -0500)
operator/lib/Operator.php
patch
|
blob
|
history
diff --git
a/operator/lib/Operator.php
b/operator/lib/Operator.php
index
9e05b4c
..
efba0ef
100644
(file)
--- 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_
merg
e($keys, $values);
+ $accountcodes = array_
combin
e($keys, $values);
}
-
return $accountcodes;
}