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