Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Solved an small issue when "not clasified" was selected and

we tried to edit categories.
  • Loading branch information...
commit 34f5efca4bf3df261503f8f7f8ff5416b2b6a4bd 1 parent c16e25c
stronk7 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/glossary/editcategories.php
View
6 mod/glossary/editcategories.php
@@ -7,7 +7,7 @@
require_variable($id); // Course Module ID, or
optional_variable($mode); // cat
- optional_variable($hook); // category ID
+ optional_variable($hook,0); // category ID
optional_variable($action); // what to do
optional_variable($usedynalink); // category ID
optional_variable($confirm); // confirm the action
@@ -32,7 +32,7 @@
error("Course module is incorrect");
}
- if ($hook) {
+ if ($hook > 0) {
if ($category = get_record("glossary_categories","id",$hook)) {
//Check it belongs to the same glossary
if ($category->glossaryid != $glossary->id) {
@@ -57,7 +57,7 @@
"", "", true, update_module_button($cm->id, $course->id, $strglossary),
navmenu($course, $cm));
- if ( $hook ) {
+ if ( $hook >0 ) {
if ( $action == "edit" ) {
if ( $confirm ) {
Please sign in to comment.
Something went wrong with that request. Please try again.