projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c536c3
)
Don't add empty mailbox arrays
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 4 May 2010 09:51:21 +0000
(
03:51
-0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 4 May 2010 16:25:17 +0000
(10:25 -0600)
imp/lib/Indices.php
patch
|
blob
|
history
diff --git
a/imp/lib/Indices.php
b/imp/lib/Indices.php
index
69d601e
..
8609be4
100644
(file)
--- a/
imp/lib/Indices.php
+++ b/
imp/lib/Indices.php
@@
-100,9
+100,14
@@
class IMP_Indices implements Iterator
case 2:
$secondarg = func_get_arg(1);
- $indices = array(
- func_get_arg(0) => (is_array($secondarg) ? array_keys(array_flip($secondarg)) : array($secondarg))
- );
+ $secondarg = is_array($secondarg)
+ ? array_keys(array_flip($secondarg))
+ : array($secondarg);
+ if (!empty($secondarg)) {
+ $indices = array(
+ func_get_arg(0) => $secondarg
+ );
+ }
break;
}