Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DatabaseStatistics.php')
-rw-r--r--lib/DatabaseStatistics.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/DatabaseStatistics.php b/lib/DatabaseStatistics.php
index a604a34..b7694b4 100644
--- a/lib/DatabaseStatistics.php
+++ b/lib/DatabaseStatistics.php
@@ -22,7 +22,6 @@
namespace OCA\ServerInfo;
-
use OCP\IConfig;
use OCP\IDBConnection;
@@ -123,8 +122,7 @@ class DatabaseStatistics {
$result->closeCursor();
if ($row['proname'] === 'pg_database_size') {
$database = $this->config->getSystemValue('dbname');
- if (strpos($database, '.') !== false)
- {
+ if (strpos($database, '.') !== false) {
list($database, ) = explode('.', $database);
}
$sql = "SELECT oid
@@ -166,6 +164,4 @@ class DatabaseStatistics {
}
return $version;
}
-
-
}