enable API options only if API enabled

pull/2616/head
Pliable Pixels 2019-05-12 12:34:55 -04:00
parent 9998c26101
commit 91dd6630b5
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ foreach ( array_map('basename', glob('skins/'.$current_skin.'/css/*',GLOB_ONLYDI
} else if ($tab == 'API') {
$apiEnabled = dbFetchOne("SELECT Value FROM Config WHERE Name='ZM_OPT_USE_API'");
if (!$apiEnabled) {
if ($apiEnabled['Value']!='1') {
echo "<div class='errorText'>APIs are disabled. To enable, please turn on OPT_USE_API in Options->System</div>";
}
else {