From 8f7ec572130b6464366fafcb9802a152393cbfff Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 30 Jan 2009 23:20:52 +0100 Subject: [PATCH] Fixed crash when looking at a wiki page with missing link and no create rights. --- src/IDF/Template/Markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Template/Markdown.php b/src/IDF/Template/Markdown.php index 6fc0666..23a3384 100644 --- a/src/IDF/Template/Markdown.php +++ b/src/IDF/Template/Markdown.php @@ -60,7 +60,7 @@ class IDF_Template_Markdown extends Pluf_Template_Tag and !$this->request->user->isAnonymous()) { return ' '.$m[1].''; } - if (!$this->request->rights['hasWikiAccess']) { + if (!$this->request->rights['hasWikiAccess'] or $pages->count() == 0) { return $m[1]; } return ''.$m[1].'';