Issue #2996519 by DamienMcKenna, joseph.olstad, Pol: PHP 7.2 compatibility - make sure some variables are arrays in theme_links()

merge-requests/26/head
Fabian Franz 2018-09-11 22:57:18 +02:00
parent b014c196e1
commit 083a4eca4a
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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 = '';