diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-04-22 09:18:35 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-04-22 09:18:35 +0200 |
commit | e912db00a8a0580f7d1108d03985a3f2faaecaad (patch) | |
tree | 9551519af83a3fc3e09414c8998513597a1eb392 | |
parent | 4648f63431c9fa612b5d47b4f40f89f891846332 (diff) | |
parent | f07323d6c02c46bef64e935c93cf5e04d19caea3 (diff) | |
download | nextcloud-server-e912db00a8a0580f7d1108d03985a3f2faaecaad.tar.gz nextcloud-server-e912db00a8a0580f7d1108d03985a3f2faaecaad.zip |
Merge pull request #23807 from owncloud/backport-of-#23760-1
[stable8.2] Fix conditional check in MySQL setup
-rw-r--r-- | lib/private/setup/mysql.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/setup/mysql.php b/lib/private/setup/mysql.php index e8b88eb3489..9e625fb20e4 100644 --- a/lib/private/setup/mysql.php +++ b/lib/private/setup/mysql.php @@ -42,7 +42,7 @@ class MySQL extends AbstractDatabase { $query='select count(*) from information_schema.tables where table_schema=? AND table_name = ?'; $result = $connection->executeQuery($query, [$this->dbName, $this->tablePrefix.'users']); $row = $result->fetch(); - if(!$result or $row[0]==0) { + if (!$row or $row['count(*)'] === '0') { \OC_DB::createDbFromStructure($this->dbDefinitionFile); } } |