mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
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
|
||||
function isinarray($needle,$haystack=array())
|
||||
function isinarray($needle,$haystack='')
|
||||
{
|
||||
for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
|
||||
return ($i!=count($haystack));
|
||||
if($haystack == '')
|
||||
{
|
||||
settype($haystack,'array');
|
||||
$haystack = Array();
|
||||
}
|
||||
for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
|
||||
return ($i!=count($haystack));
|
||||
}
|
||||
|
||||
function check_db()
|
||||
|
Loading…
Reference in New Issue
Block a user