store numbers as strings to prevent errors with numeric passwords

This commit is contained in:
Robin Appelman 2011-06-14 01:11:49 +02:00
parent f863002e95
commit 00858efbe2
1 changed files with 0 additions and 3 deletions

View File

@ -169,9 +169,6 @@ class OC_CONFIG{
$value = $value ? 'true' : 'false';
$content .= "\"$key\" => $value,\n";
}
elseif( is_numeric( $value )){
$content .= "\"$key\" => $value,\n";
}
else{
$value = str_replace( "'", "\\'", $value );
$content .= "\"$key\" => '$value',\n";