]> ruin.nu Git - ndwebbie.git/commitdiff
relationship can be null
authorMichael Andreen <harv@ruin.nu>
Sun, 6 Apr 2008 13:49:55 +0000 (15:49 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 6 Apr 2008 13:49:55 +0000 (15:49 +0200)
NDWeb/Pages/CovOp.pm

index 4654eee0d47f911f24969c569f2bea8be501dec6..ddb8aa0720b974b627ded2684c95eb9ac8c82f8f 100644 (file)
@@ -42,7 +42,7 @@ sub render_body {
 
        return $self->noAccess unless $self->isMember;
 
-       my $show = q{AND (NOT planet_status IN ('Friendly','NAP')) AND  (NOT relationship IN ('Friendly','NAP'))};
+       my $show = q{AND (NOT planet_status IN ('Friendly','NAP')) AND  (relationship IS NULL OR NOT relationship IN ('Friendly','NAP'))};
        $show = '' if defined param('show') && param('show') eq 'all';
        if (defined param('covop') && param('covop') =~ /^(\d+)$/){
                my $update = $DBH->prepare('UPDATE covop_targets SET covop_by = ?, last_covop = tick() WHERE planet = ? ');