Skip to content

Commit

Permalink
Merge pull request #23760 from owncloud/fix-setup-mysql
Browse files Browse the repository at this point in the history
Fix conditional check in MySQL setup
  • Loading branch information
DeepDiver1975 committed Apr 20, 2016
2 parents 784cf3d + 440b5ca commit fff272b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/setup/mysql.php
Expand Up @@ -43,7 +43,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 fff272b

Please sign in to comment.