Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already defined)

This commit is contained in:
skaldrom
2004-06-14 20:56:03 +00:00
parent 77915f7aa7
commit 56eb5690a2
2 changed files with 10 additions and 1 deletions
+1 -1
View 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
+9
View 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 = '';
}
@@ -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;
}
?>