Commit bd595219 authored by Namzhilma Zhambalova's avatar Namzhilma Zhambalova

Drupal 10 patch notices

parent a4f6a49c
......@@ -30,7 +30,7 @@ class Condition extends ConditionBase {
}
// Process the value for operator that use it.
if (!in_array($condition['operator'], ['IS NULL', 'IS NOT NULL'], TRUE)) {
if (isset($condition['value']) && !in_array($condition['operator'], ['IS NULL', 'IS NOT NULL'], TRUE)) {
// Lowercase condition value(s) for case-insensitive matches.
if (is_array($condition['value'])) {
$condition['value'] = array_map('mb_strtolower', $condition['value']);
......
......@@ -141,7 +141,7 @@ class RequestPath extends ConditionPluginBase implements ContainerFactoryPluginI
public function evaluate() {
// Convert path to lowercase. This allows comparison of the same path
// with different case. Ex: /Page, /page, /PAGE.
$pages = mb_strtolower($this->configuration['pages']);
$pages = $this->configuration['pages'] ? mb_strtolower($this->configuration['pages']) : '';
if (!$pages) {
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment