SF.net SVN: postfixadmin:[1559] trunk/model/Config.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2013-11-10 16:00:23
|
Revision: 1559
http://sourceforge.net/p/postfixadmin/code/1559
Author: christian_boltz
Date: 2013-11-10 16:00:20 +0000 (Sun, 10 Nov 2013)
Log Message:
-----------
model/Config:
- read_f(): fix error logging - $var can be an array
Modified Paths:
--------------
trunk/model/Config.php
Modified: trunk/model/Config.php
===================================================================
--- trunk/model/Config.php 2013-11-10 15:57:32 UTC (rev 1558)
+++ trunk/model/Config.php 2013-11-10 16:00:20 UTC (rev 1559)
@@ -121,7 +121,10 @@
$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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|