projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90eebba
)
The shortcut is still needed because array_combine() fails with empty arrays.
author
Jan Schneider
<jan@horde.org>
Fri, 5 Mar 2010 18:26:07 +0000
(19:26 +0100)
committer
Jan Schneider
<jan@horde.org>
Fri, 5 Mar 2010 18:27:35 +0000
(19:27 +0100)
framework/Util/lib/Horde/Array.php
patch
|
blob
|
history
diff --git
a/framework/Util/lib/Horde/Array.php
b/framework/Util/lib/Horde/Array.php
index
1184bef
..
4d138eb
100644
(file)
--- a/
framework/Util/lib/Horde/Array.php
+++ b/
framework/Util/lib/Horde/Array.php
@@
-193,6
+193,9
@@
class Horde_Array
*/
static public function valuesToKeys($array)
{
+ if (!$array) {
+ return array();
+ }
return array_combine($array, $array);
}