Passed
Push — 25073_inscricao_massa ( 9dd905...31b970 )
by
unknown
47s
created
mass_assign.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
  * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 23
  */
24 24
 
25
-require_once(__DIR__.'/../../config.php');
26
-require_once($CFG->dirroot.'/local/relationship/locallib.php');
25
+require_once(__DIR__ . '/../../config.php');
26
+require_once($CFG->dirroot . '/local/relationship/locallib.php');
27 27
 
28 28
 require_login();
29 29
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 // Therefore, the mass assign only works in cohort without component.
38 38
 // When uniform distribution is enabled, users are uniformly distribute to any group with uniformdistribution = 1 in the relationship,
39 39
 // so uniform distribution needs to be disabled to mass assign users in a specific group.
40
-if(!empty($relationshipcohort->component) || $relationshipcohort->uniformdistribution || $relationshipgroup->uniformdistribution) {
40
+if (!empty($relationshipcohort->component) || $relationshipcohort->uniformdistribution || $relationshipgroup->uniformdistribution) {
41 41
     print_error('cantmassassign', 'local_relationship');
42 42
 }
43 43
 
Please login to merge, or discard this patch.