CauseFX преди 4 години
родител
ревизия
1fc2a4d144
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      api/classes/organizr.class.php
  2. 1 1
      api/functions/config-functions.php

+ 1 - 0
api/classes/organizr.class.php

@@ -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']);
 				}
 			}

+ 1 - 1
api/functions/config-functions.php

@@ -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;
 		}