X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2Fviews%2Fargument%2FUserUid.php;h=7023102d8326a7fa62126da4f8163c37284e64e5;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=69621559c4cac66393c3425c0cfd119cf7860fd3;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/comment/src/Plugin/views/argument/UserUid.php b/web/core/modules/comment/src/Plugin/views/argument/UserUid.php index 69621559c..7023102d8 100644 --- a/web/core/modules/comment/src/Plugin/views/argument/UserUid.php +++ b/web/core/modules/comment/src/Plugin/views/argument/UserUid.php @@ -3,6 +3,7 @@ namespace Drupal\comment\Plugin\views\argument; use Drupal\Core\Database\Connection; +use Drupal\Core\Database\Query\Condition; use Drupal\views\Plugin\views\argument\ArgumentPluginBase; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -90,7 +91,7 @@ class UserUid extends ArgumentPluginBase { $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->argument, '=') ->exists($subselect);