1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

PHP Warning removal

This commit is contained in:
Cameron
2018-07-14 13:26:50 -07:00
parent ce765316dd
commit 7933ec651e

View File

@@ -2981,7 +2981,7 @@ class e_form
{ {
$sel = is_array($selected) ? in_array($value, $selected) : ($value == $selected); $sel = is_array($selected) ? in_array($value, $selected) : ($value == $selected);
if(!empty($options['disabled'])) if(!empty($options['disabled']) && is_array($options['disabled']))
{ {
$opts['disabled'] = in_array($value, $options['disabled']); $opts['disabled'] = in_array($value, $options['disabled']);
} }