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

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-16 10:17:35 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-16 10:17:35 +0300
commitc313d80271924797fedeffc38041cbfb85387433 (patch)
treec317cb7f96f0d29270cd4efb8e909b4023def74e /lib
parent480d1122fcb8719321148a26a1fdb56ac16088a2 (diff)
Use strong comparisons
Diffstat (limited to 'lib')
-rw-r--r--lib/Categories/Database.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php
index fe2d4c1..5f04195 100644
--- a/lib/Categories/Database.php
+++ b/lib/Categories/Database.php
@@ -135,7 +135,7 @@ class Database implements ICategory {
$result = $this->connection->executeQuery($sql);
$database_size = 0;
while ($row = $result->fetch()) {
- if ((isset($row['Type']) && $row['Type'] != 'MRG_MyISAM') || (isset($row['Engine']) && ($row['Engine'] == 'MyISAM' || $row['Engine'] == 'InnoDB'))) {
+ if ((isset($row['Type']) && $row['Type'] !== 'MRG_MyISAM') || (isset($row['Engine']) && ($row['Engine'] === 'MyISAM' || $row['Engine'] === 'InnoDB'))) {
$database_size += $row['Data_length'] + $row['Index_length'];
}
}
@@ -157,7 +157,7 @@ class Database implements ICategory {
$result = $this->connection->executeQuery($sql);
$row = $result->fetch();
$result->closeCursor();
- if ($row['proname'] == 'pg_database_size') {
+ if ($row['proname'] === 'pg_database_size') {
$database = $this->config->getSystemValue('dbname');
if (strpos($database, '.') !== false)
{