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

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/databasetraits/DatabaseTrait.php')
-rw-r--r--src/database/databasetraits/DatabaseTrait.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/database/databasetraits/DatabaseTrait.php b/src/database/databasetraits/DatabaseTrait.php
index c932ec51..4f5d379a 100644
--- a/src/database/databasetraits/DatabaseTrait.php
+++ b/src/database/databasetraits/DatabaseTrait.php
@@ -155,11 +155,7 @@ trait DatabaseTrait
$orderby = 'ORDER BY pdb.datname';
}
- if (!$conf['show_system']) {
- $where = ' AND NOT pdb.datistemplate';
- } else {
- $where = ' AND pdb.datallowconn';
- }
+ $where = $conf['show_system'] ? ' AND pdb.datallowconn' : ' AND NOT pdb.datistemplate';
$sql = \sprintf(
'
@@ -507,11 +503,7 @@ trait DatabaseTrait
{
$conf = $this->conf;
- if (!$conf['show_system']) {
- $where = 'AND pn.nspname NOT LIKE $$pg\_%$$';
- } else {
- $where = "AND nspname !~ '^pg_t(emp_[0-9]+|oast)$'";
- }
+ $where = $conf['show_system'] ? "AND nspname !~ '^pg_t(emp_[0-9]+|oast)$'" : 'AND pn.nspname NOT LIKE $$pg\_%$$';
$sql = \sprintf(
'