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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -273,7 +273,7 @@ public function &getByLimit(
273
273
$start = null;
274
274
$sort = '';
275
275
$order = '';
276
-
if (null !== $criteria && is_subclass_of($criteria, 'CriteriaCompo')) {
276
+
if (null !== $criteria && $criteriainstanceof \CriteriaCompo) {
277
277
$sql .= '' . $criteria->renderWhere();
278
278
$sort = $criteria->getSort();
279
279
$order = $criteria->getOrder();
@@ -336,7 +336,7 @@ public function getCount(\CriteriaElement $criteria = null)
336
336
$modid = (int)($modid);
337
337
*/
338
338
$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}";
339
-
if ((null !== $criteria) && is_subclass_of($criteria, 'CriteriaElement')) {
339
+
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
340
340
$sql .= '' . $criteria->renderWhere();
341
341
}
342
342
/*
@@ -377,7 +377,7 @@ public function getItems(\CriteriaElement $criteria = null)
377
377
$start = null;
378
378
$sort = '';
379
379
$order = '';
380
-
if ((null !== $criteria) && is_subclass_of($criteria, 'CriteriaElement')) {
380
+
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
0 commit comments