Commit 083a4eca authored by Fabian Franz's avatar Fabian Franz
Browse files

Issue #2996519 by DamienMcKenna, joseph.olstad, Pol: PHP 7.2 compatibility -...

Issue #2996519 by DamienMcKenna, joseph.olstad, Pol: PHP 7.2 compatibility - make sure some variables are arrays in theme_links()
parent b014c196
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ Drupal 7.xx, xxxx-xx-xx (development version)
- PHP 7.2: Removed deprecated function each().
- PHP 7.2: Avoid count() calls on uncountable variables.
- PHP 7.2: Removed deprecated create_function() call.
- PHP 7.2: Make sure variables are arrays in theme_links().
- Fixed theme-settings.php not being loaded on cached forms

Drupal 7.59, 2018-04-25
+2 −2
Changes for includes/theme.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1776,8 +1776,8 @@ function theme_link($variables) {
 *     http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
 */
function theme_links($variables) {
  $links = $variables['links'];
  $attributes = $variables['attributes'];
  $links = (array) $variables['links'];
  $attributes = (array) $variables['attributes'];
  $heading = $variables['heading'];
  global $language_url;
  $output = '';