Merge pull request from ruben-herold/master

Fix check for config values
This commit is contained in:
Tuxis Internet Engineering V.O.F 2015-12-31 10:44:35 +01:00
commit e6db412fbc
2 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ Requirements
* A webserver running php
* php sqlite3
* php curl
* php with openssl support
* PowerDNS with the experimental JSON-api enabled (3.4.0 should do)
Installing

View file

@ -4,7 +4,7 @@ include('config.inc.php');
$blocklogin = FALSE;
if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or empty($apivers)) {
if ((!isset($apipass) or empty($apipass)) or (!isset($apiip) or empty($apiip)) or (!isset($apiport) or empty($apiport)) or (!isset($apivers) or is_null($apivers))) {
$errormsg = 'You need to configure your settings for the PowerDNS API. See <a href="doc/apiconf.txt">doc/apiconf.txt</a>';
$blocklogin = TRUE;
}