mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Small fix for redeclaring a variable to a different type.
This commit is contained in:
parent
32907e0aee
commit
d23736a1dc
@ -527,12 +527,15 @@
|
||||
*/
|
||||
function execute_script($script, $order = '')
|
||||
{
|
||||
if ($order != '' && gettype($order) != 'array')
|
||||
if ($order != '' && !is_array($order))
|
||||
{
|
||||
$order = array($order);
|
||||
$new_order = $order;
|
||||
unset($order);
|
||||
$order = array($new_order);
|
||||
}
|
||||
if ($order == '')
|
||||
{
|
||||
unset($order);
|
||||
$order = array();
|
||||
}
|
||||
/* First include the ordered setup script file */
|
||||
|
Loading…
Reference in New Issue
Block a user