X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2FttConfigHelper.class.php;h=33e94e51350d6783f407b0a210ec77a818c40925;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=6790e21408383ef9fe1b30de5b233d16c6bd9100;hpb=7a59cd1320f833a7cc2a29f5fd2806f84a4f0e94;p=timetracker.git diff --git a/WEB-INF/lib/ttConfigHelper.class.php b/WEB-INF/lib/ttConfigHelper.class.php index 6790e214..33e94e51 100644 --- a/WEB-INF/lib/ttConfigHelper.class.php +++ b/WEB-INF/lib/ttConfigHelper.class.php @@ -73,7 +73,7 @@ class ttConfigHelper { } // The getIntValue parses an integer value from the source config array. - function getIntValue($name) { + function getIntValue($name, $defaultVal = 0) { $name_with_colon = $name.':'; $len = strlen($name_with_colon); @@ -87,7 +87,7 @@ class ttConfigHelper { } } } - return false; + return $defaultVal; } // The setIntValue sets an integer value into config array.