Fixed stray notice sometimes when viewing a style with no effects

8.0.x
Greg Dunlap 2012-01-02 13:48:19 +01:00
parent 42be9566b9
commit 1aedb7da51
1 changed files with 1 additions and 1 deletions

View File

@ -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,