mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 10:04:35 +02:00
Possible prevention of Issue #2992
This commit is contained in:
@@ -5189,7 +5189,17 @@ $text .= "
|
|||||||
if($val['type'] == 'image' && empty($val['readParms']))
|
if($val['type'] == 'image' && empty($val['readParms']))
|
||||||
{
|
{
|
||||||
$vars['fields'][$key]['readParms'] = 'thumb=80x80'; // provide a thumbnail preview by default.
|
$vars['fields'][$key]['readParms'] = 'thumb=80x80'; // provide a thumbnail preview by default.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(empty($vars['fields'][$key]['readParms']))
|
||||||
|
{
|
||||||
|
$vars['fields'][$key]['readParms'] = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(empty($vars['fields'][$key]['writeParms']))
|
||||||
|
{
|
||||||
|
$vars['fields'][$key]['writeParms'] = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user