projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiply contacts spport added.
[fa-stable.git]
/
includes
/
current_user.inc
diff --git
a/includes/current_user.inc
b/includes/current_user.inc
index 017a54052bff8fa0868e18d55ffe8938eb4ad86e..c4d94539df5797c01dad0cfd64d9f4fc0c754242 100644
(file)
--- a/
includes/current_user.inc
+++ b/
includes/current_user.inc
@@
-481,12
+481,13
@@
function array_search_value($needle, $haystack, $valuekey=null)
function array_search_keys($needle, $haystack, $valuekey=null)
{
$keys = array();
function array_search_keys($needle, $haystack, $valuekey=null)
{
$keys = array();
- foreach($haystack as $key => $value) {
- $val = isset($valuekey) ? $value[$valuekey] : $value;
- if ($needle == $val){
- $keys[] = $key;
+ if($haystack)
+ foreach($haystack as $key => $value) {
+ $val = isset($valuekey) ? $value[$valuekey] : $value;
+ if ($needle == $val){
+ $keys[] = $key;
+ }
}
}
- }
return $keys;
}
//
return $keys;
}
//