From 56eb5690a22b027da37550b6d73dd5113f43d59e Mon Sep 17 00:00:00 2001 From: skaldrom Date: Mon, 14 Jun 2004 20:56:03 +0000 Subject: [PATCH] Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already defined) --- mod/wiki/TODO.txt | 2 +- mod/wiki/mod.html | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mod/wiki/TODO.txt b/mod/wiki/TODO.txt index 4507b2a003..ba31a2bd79 100644 --- a/mod/wiki/TODO.txt +++ b/mod/wiki/TODO.txt @@ -13,7 +13,7 @@ Michael: - Notify when page changes Unassigned or not ready: - - Dump Pages + - Wiki HTML: http://moodle.org/mod/forum/discuss.php?d=8920 - http://moodle.org/mod/forum/discuss.php?d=7768#36954 - Image Thumbnails http://moodle.org/mod/forum/discuss.php?d=8351 diff --git a/mod/wiki/mod.html b/mod/wiki/mod.html index c6b66b590d..406309aec1 100644 --- a/mod/wiki/mod.html +++ b/mod/wiki/mod.html @@ -4,6 +4,9 @@ dirroot/mod/wiki/lib.php"); + if (!isset($form->id)) { + $form->id = ''; + } if (!isset($form->name)) { $form->name = ''; } @@ -47,9 +50,15 @@ $form->pagename = ''; } + # Set other variables + if (!isset($id)) { + $id = ''; + } /// If updating an existing wiki, find out if it has entries. if ($form->id) { $wikihasentries = wiki_has_entries($form); + } else { + $wikihasentries=false; } ?> -- 2.39.5