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

Undefined array key 0 in Drupal\Core\Database\Query\Condition->condition()

$
0
0

Problem/Motivation

I have to remove the Warning: Undefined array key 0 en Drupal\Core\Database\Query\Condition->condition() (línea 116 de /var/www/html/web/core/lib/Drupal/Core/Database/Query/Condition.php)

Steps to reproduce

you may install Drupal 10.4.1

Proposed resolution

In the line 116 add a if

if(isset($value[0])){
    $value = $value[0];
}

Instead of this

$value = $value[0];

Viewing all articles
Browse latest Browse all 296275

Trending Articles



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