Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298914

Problem with element_children method when weight is not scalar

$
0
0

Problem/Motivation

In the common.inc a recent change made in https://www.drupal.org/node/2756297 causes errors.
There used to be a scalar check but now the value of weight could be anything.
This was no problem until the calculation was added.

Steps to reproduce

Set the weight too for example an array [0, 0] and notice that we get an error.

Error: Unsupported operand types in element_children()

Proposed resolution

Add the scalar check to the weight value.
Patch is added.

We accidentally came across the issue when updating to the latest security update 7.82.


Viewing all articles
Browse latest Browse all 298914

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>