Fix fatal error when trying to delete a document that does not exist

This commit is contained in:
Kijin Sung 2016-07-15 12:00:26 +09:00
parent 4ef40aff4e
commit 49bc197acb

View file

@ -821,7 +821,7 @@ class boardView extends board
} }
// if the document is not existed, then back to the board content page // if the document is not existed, then back to the board content page
if(!$oDocument->isExists()) if(!$oDocument || !$oDocument->isExists())
{ {
return $this->dispBoardContent(); return $this->dispBoardContent();
} }