]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already defined)
authorskaldrom <skaldrom>
Mon, 14 Jun 2004 20:56:03 +0000 (20:56 +0000)
committerskaldrom <skaldrom>
Mon, 14 Jun 2004 20:56:03 +0000 (20:56 +0000)
mod/wiki/TODO.txt
mod/wiki/mod.html

index 4507b2a0031dd8661491f729f8a9f6531b786624..ba31a2bd79f212f1caad799359d16cc9fcbd96c8 100644 (file)
@@ -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
  
index c6b66b590d7359f5de2fa0c3bf73549483a652ee..406309aec19fd38d3a1f4d3e414516302afab5d0 100644 (file)
@@ -4,6 +4,9 @@
 <?php
     require("$CFG->dirroot/mod/wiki/lib.php");
 
+    if (!isset($form->id)) {
+        $form->id = '';
+    }
     if (!isset($form->name)) {
         $form->name = '';
     }
         $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;
     }
 ?>