Browse Source

[svn r21595] fix logic for the empty index page

Juan Carlos Raña 15 years ago
parent
commit
6a711a4775
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/wiki/index.php

+ 2 - 2
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;		
 	}