mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Merge branch 'master' of gitorious.org:owncloud/owncloud
This commit is contained in:
commit
de3032fd00
1 changed files with 5 additions and 2 deletions
|
|
@ -190,9 +190,12 @@ class OC_Setup {
|
|||
}
|
||||
|
||||
//fill the database if needed
|
||||
$query = "SELECT relname FROM pg_class WHERE relname='{$dbtableprefix}users' limit 1";
|
||||
$query = "select count(*) FROM pg_class WHERE relname='{$dbtableprefix}users' limit 1";
|
||||
$result = pg_query($connection, $query);
|
||||
if(!$result) {
|
||||
if($result){
|
||||
$row = pg_fetch_row($result);
|
||||
}
|
||||
if(!$result or $row[0]==0) {
|
||||
OC_DB::createDbFromStructure('db_structure.xml');
|
||||
}
|
||||
pg_close($connection);
|
||||
|
|
|
|||
Loading…
Reference in a new issue