diff --git a/locallib.php b/locallib.php index e821a56..4f1a83e 100755 --- a/locallib.php +++ b/locallib.php @@ -685,6 +685,7 @@ function game_questions_shortanswer_question_fraction( $table, $fields, $select) else{ $updrec->lastremotehost = gethostbyaddr( $updrec->lastip); } + $updrec->lastip = substr( $updrec->lastip, 0, 30); $updrec->lastremotehost = substr( $updrec->lastremotehost, 0, 50); if( $score >= 0){ diff --git a/version.php b/version.php index 986a6ad..87b187e 100755 --- a/version.php +++ b/version.php @@ -11,7 +11,7 @@ defined('MOODLE_INTERNAL') || die(); $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->cron = 0; // Period for cron to check this module (secs) -$module->release = '3.8.24.6'; +$module->release = '3.9.7.1';