Merge branch 'stable9' into dont-collide-with-php-internals
This commit is contained in:
commit
6e55f93836
|
@ -43,7 +43,7 @@ class MySQL extends AbstractDatabase {
|
||||||
$query='select count(*) from information_schema.tables where table_schema=? AND table_name = ?';
|
$query='select count(*) from information_schema.tables where table_schema=? AND table_name = ?';
|
||||||
$result = $connection->executeQuery($query, [$this->dbName, $this->tablePrefix.'users']);
|
$result = $connection->executeQuery($query, [$this->dbName, $this->tablePrefix.'users']);
|
||||||
$row = $result->fetch();
|
$row = $result->fetch();
|
||||||
if(!$result or $row[0]==0) {
|
if (!$row or $row['count(*)'] === '0') {
|
||||||
\OC_DB::createDbFromStructure($this->dbDefinitionFile);
|
\OC_DB::createDbFromStructure($this->dbDefinitionFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue