From 1aedb7da51136a3396ae07cfbd0cc38b39498d63 Mon Sep 17 00:00:00 2001 From: Greg Dunlap Date: Mon, 2 Jan 2012 13:48:19 +0100 Subject: [PATCH] Fixed stray notice sometimes when viewing a style with no effects --- core/modules/image/image.admin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/image/image.admin.inc b/core/modules/image/image.admin.inc index 3a071ffb012f..2bbb00d39471 100644 --- a/core/modules/image/image.admin.inc +++ b/core/modules/image/image.admin.inc @@ -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,