From 63cd83c102ba1825939dd48b8a97de4674b1d51c Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 31 Jan 2016 21:56:28 +0100 Subject: [PATCH] Setup/Update * fixed errors introduced in c3fe4b0224859fbdc8d1109e93dbefb1c401a2b5 --- setup/tools/clisetup/update.func.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/tools/clisetup/update.func.php b/setup/tools/clisetup/update.func.php index a67e7031..df9f07c5 100644 --- a/setup/tools/clisetup/update.func.php +++ b/setup/tools/clisetup/update.func.php @@ -61,8 +61,8 @@ function update() sleep(1); - $sql = array_unique(explode(' ', trim($sql))); - $build = array_unique(explode(' ', trim($build))); + $sql = trim($sql) ? array_unique(explode(' ', trim($sql))) : []; + $build = trim($build) ? array_unique(explode(' ', trim($build))) : []; if ($sql) CLISetup::log('The following table(s) require syncing: '.implode(', ', $sql));