@@ -320,7 +320,7 @@ |
||
320 | 320 | |
321 | 321 | $cohorts = $DB->get_records('relationship_cohorts', array('relationshipid' => $relationship->id)); |
322 | 322 | |
323 | - if(count($cohorts) == 0) { |
|
323 | + if (count($cohorts) == 0) { |
|
324 | 324 | |
325 | 325 | $relationshipgroups = $DB->get_records('relationship_groups', array('relationshipid' => $relationship->id)); |
326 | 326 | foreach ($relationshipgroups AS $g) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | if (optional_param('confirmdelete', 0, PARAM_BOOL) && confirm_sesskey() && $relationship->id) { |
55 | 55 | $res = relationship_delete_relationship($relationship); |
56 | - if($res === -1) { |
|
56 | + if ($res === -1) { |
|
57 | 57 | print_string('has_cohorts', 'local_relationship'); |
58 | 58 | } |
59 | 59 | redirect($returnurl); |