Skip to content

Commit

Permalink
[stable9] Fix conditional check in MySQL setup
Browse files Browse the repository at this point in the history
Backport of "Fix conditional check in MySQL setup #23760"
  • Loading branch information
Daniel Hansson committed Apr 5, 2016
1 parent cb9d0b9 commit f07323d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/setup/mysql.php
Expand Up @@ -42,7 +42,7 @@ public function setupDatabase($username) {
$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);
}
}
Expand Down

0 comments on commit f07323d

Please sign in to comment.