From c9724c74da384d0c196a8e265a60621377c5b744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Tue, 23 Jun 2009 19:46:24 +0200 Subject: [PATCH] [svn r21588] prevent edit main page as if it is empty after adding a page --- main/wiki/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index eb8d76cb76..dc5f2d0403 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -1174,7 +1174,7 @@ if ($_GET['action']=='edit') $result=api_sql_query($sql,__LINE__,__FILE__); $row=Database::fetch_array($result); // we do not need a while loop since we are always displaying the last version - if ($row['content']=='' AND $row['title']=='' AND $page='index') + if ($row['content']=='' AND $row['title']=='' AND $page=='index') { $content=sprintf(get_lang('DefaultContent'),api_get_path(WEB_IMG_PATH)); $title=get_lang('DefaultTitle');