[svn r21595] fix logic for the empty index page

skala
Juan Carlos Raña 17 years ago
parent f8c9100ef2
commit 6a711a4775
  1. 4
      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;
}

Loading…
Cancel
Save