Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Fixed bug in get_monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
sfgarza committed Jul 18, 2017
1 parent 065612c commit ec6ecb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-uptime-robot-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public function get_monitors( $search = '', $monitors = null, $custom_up_ratio =
$result->limit = ($limit * $offset) + $limit;
$offset++;
$append = $this->fetch( $request . '&offset=' . ($offset * $limit) );

if( 'fail' === $append->stat ){ break; }

$result->monitors->monitor = array_merge( $result->monitors->monitor, $append->monitors->monitor );
}
$result->limit = ( $limit * $offset ) + $limit;
Expand Down

0 comments on commit ec6ecb3

Please sign in to comment.