@@ -22,8 +22,8 @@ discard block |
||
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 |
||
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 |