Permalink
Browse files

Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already de…

…fined)
  • Loading branch information...
1 parent 77915f7 commit 56eb5690a22b027da37550b6d73dd5113f43d59e skaldrom committed Jun 14, 2004
Showing with 10 additions and 1 deletion.
  1. +1 −1 mod/wiki/TODO.txt
  2. +9 −0 mod/wiki/mod.html
View
@@ -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
View
@@ -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;
}
?>

0 comments on commit 56eb569

Please sign in to comment.