X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Fsrc%2FPlugin%2Fviews%2Ffilter%2FCurrent.php;h=aa42529f5a562fc1228ba7e643a0fe74b937cd7f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=e7126736397ff5cdcbcb20347be846c768c2f4b9;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/user/src/Plugin/views/filter/Current.php b/web/core/modules/user/src/Plugin/views/filter/Current.php index e71267363..aa42529f5 100644 --- a/web/core/modules/user/src/Plugin/views/filter/Current.php +++ b/web/core/modules/user/src/Plugin/views/filter/Current.php @@ -2,6 +2,7 @@ namespace Drupal\user\Plugin\views\filter; +use Drupal\Core\Database\Query\Condition; use Drupal\views\Plugin\views\display\DisplayPluginBase; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\filter\BooleanOperator; @@ -28,7 +29,7 @@ class Current extends BooleanOperator { $this->ensureMyTable(); $field = $this->tableAlias . '.' . $this->realField . ' '; - $or = db_or(); + $or = new Condition('OR'); if (empty($this->value)) { $or->condition($field, '***CURRENT_USER***', '<>');