summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2014-02-07 18:07:27 +0000
committerNathan Kinkade <nath@nkinka.de>2014-02-07 18:07:27 +0000
commit3a2ecfccf53fa0762ebdd1f1733c880e73799ea0 (patch)
tree29ec350bb35a5dbc9073be728ca15a8020b52f62
parentf43ee1d764c2e45da796882c48c993d7872be0aa (diff)
Only add entries if one of the two conditions is true, not both.
-rw-r--r--interesting_defendants/interesting_defendants.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/interesting_defendants/interesting_defendants.php b/interesting_defendants/interesting_defendants.php
index 0b8500f..5bbf521 100644
--- a/interesting_defendants/interesting_defendants.php
+++ b/interesting_defendants/interesting_defendants.php
@@ -105,12 +105,12 @@ HTML;
$has_akas = true;
}
- if ( $has_multiple_cases ) {
+ if ( $has_multiple_cases && ! $has_akas ) {
fputcsv($interesting_defendants_with_multiple_cases_csv, $defendant_csv);
fwrite($interesting_defendants_with_multiple_cases_html, $defendant_html);
}
- if ( $has_akas ) {
+ if ( $has_akas && ! $has_multiple_cases ) {
fputcsv($interesting_defendants_with_akas_csv, $defendant_csv);
fwrite($interesting_defendants_with_akas_html, $defendant_html);
}