Skip to content

Commit

Permalink
fix undefined method error
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Aug 2, 2023
1 parent 9b99d69 commit 27845e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/TrendingPages.php
Expand Up @@ -26,7 +26,7 @@ public function execute() {
'LIMIT' => 10
]
);
if ( $dbr->numRows( $res ) ) {
if ( $res->numRows() ) {
foreach ( $res as $row ) {
$trendingArticles[] = [
'text' => htmlspecialchars( $row->title ),
Expand Down

0 comments on commit 27845e8

Please sign in to comment.