projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
238eabd
)
Operator: make sure driver is loaded to populate perms array
author
Ben Klang
<ben@alkaloid.net>
Sun, 10 Jan 2010 19:14:59 +0000
(14:14 -0500)
committer
Ben Klang
<ben@alkaloid.net>
Sun, 10 Jan 2010 19:14:59 +0000
(14:14 -0500)
operator/lib/Operator.php
patch
|
blob
|
history
diff --git
a/operator/lib/Operator.php
b/operator/lib/Operator.php
index
c52e655
..
9e05b4c
100644
(file)
--- a/
operator/lib/Operator.php
+++ b/
operator/lib/Operator.php
@@
-89,7
+89,10
@@
class Operator {
function getAccountCodes($permfilter = false)
{
global $operator;
-
+ if (empty($operator)) {
+ $operator = new Operator_Application(array('init' => true));
+ }
+
// Set up arrays for filtering
$keys = $values = $operator->driver->getAccountCodes();