$mform->setHelpButton('email_notification', array('emailnotification', get_string('email_notification', 'feedback'), 'feedback'));
// check if there is existing responses to this feedback
- if ($this->_instance and $feedback = get_record("feedback", "id", $this->_instance)) {
+ if (is_numeric($this->_instance) AND $this->_instance and $feedback = get_record("feedback", "id", $this->_instance)) {
$completedFeedbackCount = feedback_get_completeds_group_count($feedback);
} else {
$completedFeedbackCount = false;
*/
- $module->version = 2008042900; // The current module version (Date: YYYYMMDDXX)
+ $module->version = 2008042901; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2007101503; // Requires this Moodle version
$feedback_version_intern = 1; //this version is used for restore older backups
$module->cron = 0; // Period for cron to check this module (secs)