Fixed stray notice sometimes when viewing a style with no effects
parent
42be9566b9
commit
1aedb7da51
|
@ -682,7 +682,7 @@ function theme_image_style_effects($variables) {
|
|||
array('data' => t('Operations'), 'colspan' => 2),
|
||||
);
|
||||
|
||||
if (count($rows) == 1 && $form['new']['#access']) {
|
||||
if (count($rows) == 1 && (!isset($form['new']['#access']) || $form['new']['#access'])) {
|
||||
array_unshift($rows, array(array(
|
||||
'data' => t('There are currently no effects in this style. Add one by selecting an option below.'),
|
||||
'colspan' => 4,
|
||||
|
|
Loading…
Reference in New Issue