Skip to content

Instantly share code, notes, and snippets.

@tfl
Created January 3, 2019 15:57
Show Gist options
  • Save tfl/f301ece9eb4c718c78c5912969406f5e to your computer and use it in GitHub Desktop.
Save tfl/f301ece9eb4c718c78c5912969406f5e to your computer and use it in GitHub Desktop.
Untested fix fpr phppgadmin-dev (v7...) which fixes an error where the function tree did not open
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index ee19990f..e823fa7b 100755
--- a/classes/database/Postgres.php
+++ b/classes/database/Postgres.php
@@ -4184,8 +4184,7 @@ class Postgres extends ADODB_base {
INNER JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
INNER JOIN pg_catalog.pg_language pl ON pl.oid = p.prolang
LEFT JOIN pg_catalog.pg_user u ON u.usesysid = p.proowner
- WHERE NOT p.proisagg
- AND {$where}
+ WHERE {$where}
ORDER BY p.proname, proresult
";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment