1
0
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:
Cameron
2021-02-08 11:59:04 -08:00
parent 608c0c57b1
commit 72c54371cc
4 changed files with 58 additions and 16 deletions

View File

@@ -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':