From 49bc197acb0bd5e9c7fc4a76b941f2767c039cb9 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 15 Jul 2016 12:00:26 +0900 Subject: [PATCH] Fix fatal error when trying to delete a document that does not exist --- modules/board/board.view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/board/board.view.php b/modules/board/board.view.php index 43761aa77..6c5dab7ce 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -821,7 +821,7 @@ class boardView extends board } // if the document is not existed, then back to the board content page - if(!$oDocument->isExists()) + if(!$oDocument || !$oDocument->isExists()) { return $this->dispBoardContent(); }