diff --git a/index.php b/index.php index 2ab0ad4..86f25c0 100755 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ $sLang = isset($_GET['l'])?$_GET['l']:(isset($_COOKIE['l'])?$_COOKIE['l']:''); //Initiate class $oMain = new Main($oClassManagement, __FILE__, $sLang); -$bLoggedIn = $oCvTheque->isLoggedIn(); +$bLoggedIn = $oMain->isLoggedIn(); $sResult = ''; if($sAction=='logmein') $sResult = $oMain->logMeIn($sToken); @@ -51,7 +51,7 @@ elseif($sAction!='' && $bLoggedIn) $sResult = $oCvTheque->function(); break; default: - $sResult = Main::getJsonResult(false, CvTheque::NOT_FOUND); + $sResult = Main::getJsonResult(false, Main::NOT_FOUND); } } elseif($sAction!='' && !$bLoggedIn)