diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 28dcffe..8b5f3a5 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -171,10 +171,7 @@ function filter_permission() { // Generate permissions for each text format. Warn the administrator that any // of them are potentially unsafe. foreach (filter_formats() as $format) { - $permission = $format->getPermissionName(); - if (!empty($permission)) { - // Only link to the text format configuration page if the user who is - // viewing this will have access to that page. + if ($permission = $format->getPermissionName()) { $format_name_replacement = l($format->label(), 'admin/config/content/formats/manage/' . $format->id()); $perms[$permission] = array( 'title' => t("Use the !text_format text format", array('!text_format' => $format_name_replacement,)),