mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-06 02:02:24 +02: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 = '')
|
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 == '')
|
if ($order == '')
|
||||||
{
|
{
|
||||||
|
unset($order);
|
||||||
$order = array();
|
$order = array();
|
||||||
}
|
}
|
||||||
/* First include the ordered setup script file */
|
/* First include the ordered setup script file */
|
||||||
|
Loading…
Reference in New Issue
Block a user