From 977f335a0fc811b58b6a0cd61b99fa6ee47d878f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 30 Dec 2017 13:42:47 +0100 Subject: [PATCH] Fix quoting in table_by_key() This fixes a regression introduced by https://github.com/postfixadmin/postfixadmin/pull/112 which became only visible when using a $CONF['database_prefix'] --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index f2ba15c5..1ba4e3f8 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1802,7 +1802,7 @@ function table_by_key ($table_key) { $table = $CONF['database_tables'][$table_key]; } - return $CONF['database_prefix']."`".$table."`"; + return "`".$CONF['database_prefix'].$table."`"; } /*