From: Matthew Flaschen Date: Fri, 26 Aug 2016 01:28:45 +0000 (-0400) Subject: SQLite syntax checker: Fix support for multiple files X-Git-Tag: 1.31.0-rc.0~5877^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=3c80c91f2521cd930e3999e97d680e0fb59a82b3;p=lhc%2Fweb%2Fwiklou.git SQLite syntax checker: Fix support for multiple files Change-Id: I285965189e4186bc557b8ef86168fb666384e5a8 --- diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 454c506365..e74a86cf69 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -132,7 +132,7 @@ class SqliteMaintenance extends Maintenance { $this->error( "Error: SQLite support not found\n" ); } $files = [ $this->getOption( 'check-syntax' ) ]; - $files += $this->mArgs; + $files = array_merge( $files, $this->mArgs ); $result = Sqlite::checkSqlSyntax( $files ); if ( $result === true ) { $this->output( "SQL syntax check: no errors detected.\n" );