Small fix for redeclaring a variable to a different type.

This commit is contained in:
skeeter 2001-09-18 03:45:22 +00:00
parent 32907e0aee
commit d23736a1dc

View File

@ -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 */