Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / src / Plugin / views / filter / UserUid.php
index adee320d4403fb89b5aba43b908d01094bed6f00..248b4609c32a1619c18633556ecc462919ca80ff 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Drupal\comment\Plugin\views\filter;
 
+use Drupal\Core\Database\Query\Condition;
 use Drupal\views\Plugin\views\filter\FilterPluginBase;
 
 /**
@@ -26,7 +27,7 @@ class UserUid extends FilterPluginBase {
     $subselect->where("c.entity_id = $this->tableAlias.$entity_id");
     $subselect->condition('c.entity_type', $entity_type);
 
-    $condition = db_or()
+    $condition = (new Condition('OR'))
       ->condition("$this->tableAlias.uid", $this->value, $this->operator)
       ->exists($subselect);