Fixed more uninitialized variables (Bug #1557 - EWIKI_NAME already defined)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user