Author: grobmeier
Date: Sat May 23 22:03:16 2009
New Revision: 778042

URL: http://svn.apache.org/viewvc?rev=778042&view=rev
Log:
enhanced codeflow

Modified:
    incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php

Modified: incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php?rev=778042&r1=778041&r2=778042&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php 
(original)
+++ incubator/log4php/trunk/src/main/php/helpers/LoggerOptionConverter.php Sat 
May 23 22:03:16 2009
@@ -214,10 +214,9 @@
         */
        public static function findAndSubst($key, $props) {
                $value = @$props[$key];
-               if(empty($value)) {
-                       return null;
+               if(!empty($value)) {
+                       return LoggerOptionConverter::substVars($value, $props);
                }
-               return LoggerOptionConverter::substVars($value, $props);
        }
 
        /**


Reply via email to