You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-03 17:02:30 +03:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user