From 5871516b472087ebe9dd5d576372f961a08f1dc8 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 10 Nov 2013 16:00:20 +0000 Subject: [PATCH] model/Config: - read_f(): fix error logging - $var can be an array git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1559 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/Config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/Config.php b/model/Config.php index 973b1957..6a2ecae6 100644 --- a/model/Config.php +++ b/model/Config.php @@ -121,7 +121,10 @@ final class Config { $newtext = sprintf($text, $value); # check if sprintf changed something - if not, there are chances that $text didn't contain a %s - if ($text == $newtext) error_log("$var used via read_f, but nothing replaced (value $value)"); + if ($text == $newtext) { + if (is_array($var)) $var = join('.', $var); + error_log("$var used via read_f, but nothing replaced (value $value)"); + } return $newtext; }