Skip to content
Permalink
Browse files

Fixed integers in config files

  • Loading branch information...
lars-sh committed Apr 5, 2014
1 parent 1b53084 commit 27fbbd4008891ac9d16f54c26d3172d91036271d
Showing with 3 additions and 0 deletions.
  1. +3 −0 system/system/kernel/kernel.eyecode
@@ -192,6 +192,9 @@ function loadServiceConfig() {
if(isset($myArray['CONFIG']) && is_array($myArray['CONFIG'])) {
if(is_array($myArray['CONFIG'][0])) {
foreach($myArray['CONFIG'][0] as $key => $value) {
if ( /* utf8 */ trim($value[0], '0..9') === '') {
$value[0] = intval($value[0]);
}
define($key,$value[0]);
}
}

0 comments on commit 27fbbd4

Please sign in to comment.
You can’t perform that action at this time.