From a90db32a7987a8fb84de7b67dbbd5b07d1226506 Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Fri, 11 Aug 2017 15:07:23 +0300 Subject: [PATCH] Fix: check params of crossword/cryptex --- check.php | 2 +- version.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check.php b/check.php index 246f1df..ddc6349 100644 --- a/check.php +++ b/check.php @@ -292,7 +292,7 @@ function game_check_common_problems_crossword_cryptex($game, &$warnings) { global $CFG, $DB; - if ($game->param1 < 10) { + if (($game->param1 < 10) && ($game->param1 > 0)) { $warnings[] = get_string( 'common_problems_crossword_param1', 'game').' (='.$game->param1.')'; } } diff --git a/version.php b/version.php index 61ad2b8..9ea917b 100644 --- a/version.php +++ b/version.php @@ -35,10 +35,10 @@ if (!isset( $plugin)) { } $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). -$plugin->version = 2017080603; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2017081101; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2010112400; // Requires Moodle 2.0. $plugin->cron = 0; // Period for cron to check this module (secs). -$plugin->release = '2017-08-06'; +$plugin->release = '2017-08-11'; $plugin->maturity = MATURITY_STABLE; if ($useplugin != 2) {