Skip to content

Commit

Permalink
execute / executeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
zk2 committed May 13, 2022
1 parent 6c9a38c commit 5ce5b74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/AbstractSps.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,10 @@ protected function getTotalCount(): int
->select('count(*)')
->from(sprintf('(%s)', $sql), '__sps_alias__');
if (method_exists($this->queryBuilder, 'executeQuery')) {
$stmt->executeQuery();
return $stmt->executeQuery()->fetchOne();
} else {
$stmt->execute();
return $stmt->execute()->fetchOne();
}

return $stmt->fetchOne();
}

/**
Expand Down

0 comments on commit 5ce5b74

Please sign in to comment.