@@ -188,6 +188,7 @@ class Organizr
$currentIP = $this->userIP();
if ($this->config['blacklisted'] !== '') {
if (in_array($currentIP, $this->arrayIP($this->config['blacklisted']))) {
+ $this->debug('User was sent to blackhole');
die($this->config['blacklistedMessage']);
}
@@ -8,7 +8,7 @@ trait ConfigFunctions
$this->setAPIResponse('success', null, 200, $this->config[$item]);
return $this->config[$item];
} else {
- $this->setAPIResponse('error', '${$this->config[$item]} is not defined', 404);
+ $this->setAPIResponse('error', $item . ' is not defined or is blank', 404);
return false;