Completed
Pull Request — master (#1)
by Roberto
04:53 queued 01:45
created
lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.