Setup/Updates

* skip unexpected characters in update fields of aowow_dbversion
This commit is contained in:
Sarjuuk
2020-07-20 21:14:06 +02:00
parent 844a4c0e52
commit 4bd32207db

View File

@@ -63,8 +63,8 @@ function update()
sleep(1); sleep(1);
$sql = trim($sql) ? array_unique(explode(' ', trim($sql))) : []; $sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $sql)))) : [];
$build = trim($build) ? array_unique(explode(' ', trim($build))) : []; $build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $build)))) : [];
if ($sql) if ($sql)
CLI::write('The following table(s) require syncing: '.implode(', ', $sql)); CLI::write('The following table(s) require syncing: '.implode(', ', $sql));