Fixing up numbers and totals
[clearscm.git] / maps / bin / add2whitelist.cgi
index 6b75398..e8cd9e2 100755 (executable)
@@ -53,7 +53,7 @@ sub Add2List(%) {
 
     my ($status, $rule) = OnWhitelist($rec{sender}, $rec{userid});
 
-    if ($status != 0) {
+    if ($status) {
       print br {-class => 'error'},
         "The email address $rec{sender} is already on ${Userid}'s $rec{type} list";
     } else {