Fix conditional check in MySQL setup

This commit is contained in:
Robin McCorkell 2016-04-03 20:54:26 +01:00
parent 34b753baa0
commit 440b5caad7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}