Issue #2996519 by DamienMcKenna, joseph.olstad, Pol: PHP 7.2 compatibility - make sure some variables are arrays in theme_links()
parent
b014c196e1
commit
083a4eca4a
|
@ -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
|
||||
|
|
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue