Skip to content

Commit

Permalink
Merge pull request #38 from devnulls/master
Browse files Browse the repository at this point in the history
Add hours to path if $hours is set
  • Loading branch information
aflanagan authored May 20, 2022
2 parents 7ac5780 + d5d5a77 commit 54bd3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function ping($params = array())
public function pause($hours = null)
{
$path = '/pause';
if ($hours) {
if (isset($hours)) {
$path .= "/$hours";
}

Expand Down

0 comments on commit 54bd3ee

Please sign in to comment.