fix write page

This commit is contained in:
francois committed 2018-04-09 22:01:42 +02:00
1 parent ab12b33532
commit 76faf824fc
13 files changed
+445 -398

No files matched your search

+4 -1
View File
@@ -49,6 +49,9 @@ elseif($sAction!='' && $bLoggedIn)
{
switch ($sAction)
{
case 'load':
$sResult = $oMyThoughts->getThought($iId, MyThoughts::JSON);
break;
case 'update':
$sResult = $oMyThoughts->updateThought($sContent, $iId);
break;
@@ -72,7 +75,7 @@ elseif($sAction!='' && !$bLoggedIn)
elseif($sAction=='register') $sResult = $oMyThoughts->register($sNickName);
else $sResult = MyThoughts::getJsonResult(false, MyThoughts::UNAUTHORIZED);
}
else $sResult = $oMyThoughts->getPage($bLoggedIn);
else $sResult = $oMyThoughts->getPage();
$sDebug = ob_get_clean();
if(Settings::DEBUG && $sDebug!='') $oMyThoughts->addUncaughtError($sDebug);