Fix a bug and support empty username in $data->isSuperUser to check the superUser...
authorJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Wed, 1 Jun 2011 19:23:37 +0000 (21:23 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Wed, 1 Jun 2011 19:23:37 +0000 (21:23 +0200)
commit4e7fc159a48612b47e9e9de6b91776d4fa96b732
tree257dfed7f7ee4c88998e683bdb8b8f34d7b85f4b
parent18cdc40ccd32dc2b99c067533bb42b0819757578
Fix a bug and support empty username in $data->isSuperUser to check the superUser status of the current role

Fixed a bug on the way as in previous version it was checking if function
pg_parameter_status exists and used it directly, hence testing only the
currently used role.
pg_parameter_status is available in PHP 5.*
classes/database/Postgres.php