You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: class/TagHandler.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -387,7 +387,7 @@ public function getCount(\CriteriaElement $criteria = null)
387
387
$modid = (int)($modid);
388
388
*/
389
389
$sql = "SELECT COUNT(DISTINCT o.{$this->keyName})" . " FROM {$this->table} AS o LEFT JOIN {$this->table_link} AS l ON l.{$this->keyName} = o.{$this->keyName}";
390
-
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
390
+
if (($criteriainstanceof \CriteriaCompo) || ($criteriainstanceof \Criteria)) {
391
391
$sql .= '' . $criteria->renderWhere();
392
392
}
393
393
/*
@@ -428,7 +428,7 @@ public function getItems(\CriteriaElement $criteria = null)
428
428
$start = Constants::BEGINNING;
429
429
$sort = '';
430
430
$order = '';
431
-
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
431
+
if (($criteriainstanceof \CriteriaCompo) || ($criteriainstanceof \Criteria)) {
0 commit comments