add db state

This commit is contained in:
2018-11-25 15:44:16 +01:00
parent 3d2bacf380
commit 260bc06370
3 changed files with 9 additions and 4 deletions

View File

@@ -64,10 +64,10 @@ elseif($sAction!='' && !$bLoggedIn)
$sResult = $oCvTheque->apifunction();
break;
default:
$sResult = CvTheque::getJsonResult(false, Main::NOT_FOUND);
$sResult = Main::getJsonResult(false, Main::NOT_FOUND);
}
}
else $sResult = CvTheque::getJsonResult(false, Main::UNAUTHORIZED);
else $sResult = Main::getJsonResult(false, Main::UNAUTHORIZED);
}
elseif($bLoggedIn) $sResult = $oMain->getMainPage();
else $sResult = $oMain->getLogonPage();