Skip to content

Commit

Permalink
Merge pull request #208 from SimplyRETS/fix-disable-count-param
Browse files Browse the repository at this point in the history
Use string literal in count=false parameter
  • Loading branch information
CodyReichert authored Sep 7, 2021
2 parents e7446cf + aa55472 commit 0c490f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simply-rets-api-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public static function srRequestUrlBuilder(
$params_arr["idx"] = $def_idx_setting;
}

// Apply the default `idx` setting if not provided
// Disable `count` parameter if not already set
if (!array_key_exists("count", $params_arr)) {
$params_arr["count"] = false;
$params_arr["count"] = "false";
}

// Build query string from parameters
Expand Down

0 comments on commit 0c490f0

Please sign in to comment.