mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Updates
* skip unexpected characters in update fields of aowow_dbversion
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user