You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
functions.inc.php:
- new function db_pgsql() to replace lots of "if ($CONF[database_type] == 'pgsql')) checks - delete unused function boolconf() several files: - use db_pgsql() instead of checking $CONF[database_type] git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1582 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -29,7 +29,7 @@ class AdminHandler extends PFAHandler {
|
||||
# NOTE: (Disabling both shouldn't be a problem.)
|
||||
|
||||
# TODO: move to a db_group_concat() function?
|
||||
if (Config::read('database_type') == 'pgsql') {
|
||||
if (db_pgsql()) {
|
||||
$domains_grouped = "array_to_string(array_agg(domain), ',')";
|
||||
} else { # mysql
|
||||
$domains_grouped = 'group_concat(domain)';
|
||||
|
Reference in New Issue
Block a user