From 6a711a4775cacd17798ebb3a88ee391fc344db30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Wed, 24 Jun 2009 00:24:05 +0200 Subject: [PATCH] [svn r21595] fix logic for the empty index page --- main/wiki/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index 6f08eae4de..05e32b48cb 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -2502,7 +2502,7 @@ function display_wiki_entry() // if both are empty and we are displaying the index page then we display the default text. - if ($row['content']=='' AND $row['title']=='' AND $page='index') + if ($row['content']=='' AND $row['title']=='' AND $page=='index') { if(api_is_allowed_to_edit() || api_is_platform_admin()) { @@ -2806,7 +2806,7 @@ function check_addnewpagelock() //show status - if ($row['addlock']==1 || ($row['content']=='' AND $row['title']=='' AND $page='index')) + if ($row['addlock']==1 || ($row['content']=='' AND $row['title']=='' AND $page=='index')) { return false; }