Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rapidwebltd/uxdm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Mar 28, 2018
2 parents e2e1688 + 0d169d5 commit 0f90dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Objects/Sources/WordPressPostSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function countDataRows()
$sql = $this->getPostSQL([]);
$fromPos = stripos($sql, 'from');
$limitPos = strripos($sql, 'limit');
$sqlSuffix = substr($sql, $fromPos, $limitPos-$fromPos);
$sqlSuffix = substr($sql, $fromPos, $limitPos - $fromPos);

$sql = 'count (*) '.$sqlSuffix;
}
Expand Down

0 comments on commit 0f90dad

Please sign in to comment.