From 49650bbbac9b795c59251e3604b24eb1bf177eae Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 26 May 2017 11:36:46 +1200 Subject: [PATCH] fix some coding guideline things. --- update_form.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/update_form.php b/update_form.php index e3bc1c1..0197dc6 100644 --- a/update_form.php +++ b/update_form.php @@ -121,15 +121,14 @@ class mod_attendance_update_form extends moodleform { $mform->addHelpButton('studentpassword', 'passwordgrp', 'attendance'); $mform->disabledif('studentpassword', 'studentscanmark', 'notchecked'); - - $mgroup2 = array(); - $mgroup2[] = & $mform->createElement('text', 'subnet', get_string('requiresubnet', 'attendance')); + $mgroup = array(); + $mgroup[] = & $mform->createElement('text', 'subnet', get_string('requiresubnet', 'attendance')); $mform->setDefault('subnet', $this->_customdata['att']->subnet); - $mgroup2[] = & $mform->createElement('checkbox', 'usedefaultsubnet', get_string('usedefaultsubnet', 'attendance')); + $mgroup[] = & $mform->createElement('checkbox', 'usedefaultsubnet', get_string('usedefaultsubnet', 'attendance')); $mform->setDefault('usedefaultsubnet', 1); $mform->setType('subnet', PARAM_TEXT); - $mform->addGroup($mgroup2, 'subnetgrp', get_string('requiresubnet', 'attendance'), array(' '), false); + $mform->addGroup($mgroup, 'subnetgrp', get_string('requiresubnet', 'attendance'), array(' '), false); $mform->setAdvanced('subnetgrp'); $mform->addHelpButton('subnetgrp', 'requiresubnet', 'attendance');