forked from extern/egroupware
Fix for bug #417329
This commit is contained in:
parent
92a18a3a12
commit
584ea9936d
@ -186,8 +186,13 @@
|
||||
}
|
||||
|
||||
// This is a php3/4 compliant in_array(), used only below in check_db() so far
|
||||
function isinarray($needle,$haystack=array())
|
||||
function isinarray($needle,$haystack='')
|
||||
{
|
||||
if($haystack == '')
|
||||
{
|
||||
settype($haystack,'array');
|
||||
$haystack = Array();
|
||||
}
|
||||
for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
|
||||
return ($i!=count($haystack));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user