From a04ef5280cc5eb6d2a15825e54bd9df9325f2370 Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 27 Oct 2008 07:51:27 +0000 Subject: [PATCH] fixed bug that occurred on wiki pages that had not been created yet --- src/lib/views/wiki/WikiPageMenuView.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/views/wiki/WikiPageMenuView.php b/src/lib/views/wiki/WikiPageMenuView.php index 59551c5..038a6f1 100644 --- a/src/lib/views/wiki/WikiPageMenuView.php +++ b/src/lib/views/wiki/WikiPageMenuView.php @@ -28,7 +28,11 @@ * @author Tommy Montgomery * @since 2008-10-18 */ - public function send() { ?> + public function send() { + if (!($this->page instanceof WikiPageObject)) { + return; + } + ?>