From 0995810249ace27b18ec22c27dcf40c5f6689f76 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 22 Jan 2018 11:23:39 -0800 Subject: [PATCH] Possible prevention of Issue #2992 --- e107_admin/plugin.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 27496dfdb..6581019ce 100755 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -5189,7 +5189,17 @@ $text .= " if($val['type'] == 'image' && empty($val['readParms'])) { $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(); + } }