瀏覽代碼

Merge pull request #1631 from jessehickman/patch-1

Update healthChecks.php
causefx 5 年之前
父節點
當前提交
b6e616d78e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      api/plugins/healthChecks.php

+ 3 - 3
api/plugins/healthChecks.php

@@ -72,7 +72,7 @@ class HealthChecks extends Organizr
 	
 	
 	public function _healthCheckPluginUUID($uuid, $pass = false)
 	public function _healthCheckPluginUUID($uuid, $pass = false)
 	{
 	{
-		if (!$uuid || !$pass || $this->config['HEALTHCHECKS-PingURL'] == '') {
+		if (!$uuid || $this->config['HEALTHCHECKS-PingURL'] == '') {
 			return false;
 			return false;
 		}
 		}
 		$url = $this->qualifyURL($this->config['HEALTHCHECKS-PingURL']);
 		$url = $this->qualifyURL($this->config['HEALTHCHECKS-PingURL']);
@@ -134,11 +134,11 @@ class HealthChecks extends Organizr
 						$pass = true;
 						$pass = true;
 					}
 					}
 				}
 				}
-				$this->_healthCheckPluginUUID($v['UUID'], 'true');
+				$this->_healthCheckPluginUUID($v['UUID'], $pass);
 			}
 			}
 			$this->setAPIResponse('success', null, 200, $allItems);
 			$this->setAPIResponse('success', null, 200, $allItems);
 		} else {
 		} else {
 			$this->setAPIResponse('error', 'User does not have access', 401);
 			$this->setAPIResponse('error', 'User does not have access', 401);
 		}
 		}
 	}
 	}
-}
+}