mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Fixed, PHP Warning: Invalid argument supplied for foreach() in ...
(skiped the importexport one, as it was already fixed by Nathan)
This commit is contained in:
parent
34db38b70d
commit
02d9accc94
@ -165,6 +165,9 @@ class Schema
|
|||||||
$columns = implode('-',$columns);
|
$columns = implode('-',$columns);
|
||||||
if ($ignore_length_limit) $columns = preg_replace('/\(\d+\)/', '', $columns);
|
if ($ignore_length_limit) $columns = preg_replace('/\(\d+\)/', '', $columns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_array($indexs)){
|
||||||
|
|
||||||
foreach($indexs as $index)
|
foreach($indexs as $index)
|
||||||
{
|
{
|
||||||
if (is_array($index))
|
if (is_array($index))
|
||||||
@ -175,6 +178,9 @@ class Schema
|
|||||||
if ($ignore_length_limit) $index = preg_replace('/\(\d+\)/', '', $index);
|
if ($ignore_length_limit) $index = preg_replace('/\(\d+\)/', '', $index);
|
||||||
if ($columns == $index) return true;
|
if ($columns == $index) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user