Code simplification

This commit is contained in:
sparc 2015-09-04 18:37:22 +00:00
parent 5f859d6b31
commit e8bf5b2360

View file

@ -400,16 +400,10 @@ if ($vdef == '') return $value;
$key = strtok($vdef,'.'); $key = strtok($vdef,'.');
if (empty($array[$key])) if (empty($array[$key])) $array[$key] = array();
{
$array[$key] = assign(array(),strtok(''),$value); $array[$key] = assign($array[$key],strtok(''),$value);
return $array; return $array;
}
else
{
$array[$key] = assign($array[$key],strtok(''),$value);
return $array;
}
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------