mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
e107::getSession()->set will now accept multi-dimensional key format. Test added. Form-handler PHP8 fix.
This commit is contained in:
@@ -5648,24 +5648,31 @@ var_dump($select_options);*/
|
||||
break;
|
||||
|
||||
case 'files':
|
||||
if(!empty($value) && !is_array($value))
|
||||
{
|
||||
return "Type 'files' must have a data type of 'array' or 'json'";
|
||||
}
|
||||
$ret = '<ol>';
|
||||
for ($i=0; $i < 5; $i++)
|
||||
{
|
||||
$ival = $value[$i]['path'];
|
||||
|
||||
if(empty($ival))
|
||||
if(!empty($value))
|
||||
{
|
||||
if(!is_array($value))
|
||||
{
|
||||
continue;
|
||||
return "Type 'files' must have a data type of 'array' or 'json'";
|
||||
}
|
||||
|
||||
$ret .= '<li>'.$ival.'</li>';
|
||||
$ret = '<ol>';
|
||||
for ($i=0; $i < 5; $i++)
|
||||
{
|
||||
$ival = $value[$i]['path'];
|
||||
|
||||
if(empty($ival))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$ret .= '<li>'.$ival.'</li>';
|
||||
}
|
||||
$ret .= '</ol>';
|
||||
$value = $ret;
|
||||
}
|
||||
$ret .= '</ol>';
|
||||
$value = $ret;
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 'datestamp':
|
||||
|
Reference in New Issue
Block a user