Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from MrPetovan/release/2.3.1
Browse files Browse the repository at this point in the history
Release 2.3.1
  • Loading branch information
annando committed Jun 20, 2020
2 parents b693378 + 0c20313 commit 937fedc
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -27,7 +27,7 @@
"laminas/laminas-escaper": "^2.6",
"masterminds/html5": "^2.3",
"monolog/monolog": "^1.17",
"mrpetovan/net_ping": "^1.0",
"mrpetovan/net_ping": "^1.2",
"sarahman/simple-filesystem-cache": "^1.0",
"seld/cli-prompt": "^1.0",
"slim/slim": "^3.1",
Expand Down
113 changes: 102 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/classes/Pollers/Profile.php
Expand Up @@ -141,7 +141,7 @@ public function __invoke(string $profile_uri)
}

// Empty result is due to an offline site.
if (count($params) < 2) {
if (empty($params) || count($params) < 2) {
//But for sites that are already in bad status. Do a cleanup now.
if ($profile_id && $server['health_score'] < $this->settings['remove_profile_health_threshold']) {
$this->profileModel->deleteById($profile_id);
Expand Down
2 changes: 1 addition & 1 deletion src/classes/Utils/Scrape.php
Expand Up @@ -23,7 +23,7 @@ public static function retrieveNoScrapeData(string $url)
}

$params = json_decode($data, true);
if (!$params || !count($params)) {
if (empty($params) || !is_array($params)) {
return false;
}

Expand Down

0 comments on commit 937fedc

Please sign in to comment.