diff options
author | Robin McCorkell <robin@mccorkell.me.uk> | 2016-04-03 20:54:26 +0100 |
---|---|---|
committer | Robin McCorkell <robin@mccorkell.me.uk> | 2016-04-20 11:58:27 +0100 |
commit | 440b5caad7f411b5cd40fd9e9857515199fd3b44 (patch) | |
tree | 4a69b26217a1f685d6b0efea02440375f48d11a6 | |
parent | 34b753baa086c5e4957673f2dc78379fabc5c854 (diff) | |
download | nextcloud-server-440b5caad7f411b5cd40fd9e9857515199fd3b44.tar.gz nextcloud-server-440b5caad7f411b5cd40fd9e9857515199fd3b44.zip |
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 ba1b2ca854c..18b6dab4ff8 100644 --- a/lib/private/setup/mysql.php +++ b/lib/private/setup/mysql.php @@ -43,7 +43,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); } } |