Browse Source

Fix: field game_attempts.lastremoteip now saves only the first 30 characters

MOODLE_20_STABLE
bdaloukas 11 years ago
parent
commit
08bc04b6b3
  1. 1
      locallib.php
  2. 4
      version.php

1
locallib.php

@ -685,6 +685,7 @@ function game_questions_shortanswer_question_fraction( $table, $fields, $select)
else{ else{
$updrec->lastremotehost = gethostbyaddr( $updrec->lastip); $updrec->lastremotehost = gethostbyaddr( $updrec->lastip);
} }
$updrec->lastip = substr( $updrec->lastip, 0, 30);
$updrec->lastremotehost = substr( $updrec->lastremotehost, 0, 50); $updrec->lastremotehost = substr( $updrec->lastremotehost, 0, 50);
if( $score >= 0){ if( $score >= 0){

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2013082406; // The current module version (Date: YYYYMMDDXX) $module->version = 2013090701; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0 $module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs) $module->cron = 0; // Period for cron to check this module (secs)
$module->release = '3.8.24.6'; $module->release = '3.9.7.1';

Loading…
Cancel
Save