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
if (null !== $criteria && is_subclass_of($criteria, 'CriteriaCompo')) {
277
+
if (null !== $criteria && $criteriainstanceof \CriteriaCompo) {
277
278
$sql .= '' . $criteria->renderWhere();
278
279
$sort = $criteria->getSort();
279
280
$order = $criteria->getOrder();
@@ -336,7 +337,7 @@ public function getCount(\CriteriaElement $criteria = null)
336
337
$modid = (int)($modid);
337
338
*/
338
339
$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')) {
340
+
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
340
341
$sql .= '' . $criteria->renderWhere();
341
342
}
342
343
/*
@@ -377,7 +378,7 @@ public function getItems(\CriteriaElement $criteria = null)
377
378
$start = null;
378
379
$sort = '';
379
380
$order = '';
380
-
if ((null !== $criteria) && is_subclass_of($criteria, 'CriteriaElement')) {
381
+
if ((null !== $criteria) && $criteriainstanceof \CriteriaElement) {
0 commit comments