fix write page
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user