Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -115,6 +115,8 @@ |
116 | 116 | .sopaActionDiv { |
117 | 117 | margin-bottom: 1em; |
118 | 118 | } |
| 119 | +p.error { |
| 120 | +} |
119 | 121 | </style> |
120 | 122 | </head> |
121 | 123 | <body> |
— | — | @@ -345,12 +347,12 @@ |
346 | 348 | public function isValidZip( $zip ) { |
347 | 349 | $zipPieces = explode( '-', $zip, 2 ); |
348 | 350 | |
349 | | - if ( strlen( $zipPieces[0] ) == 5 || !is_numeric( $zipPieces[0] )) { |
| 351 | + if ( strlen( $zipPieces[0] ) != 5 || !is_numeric( $zipPieces[0] )) { |
350 | 352 | return false; |
351 | 353 | } |
352 | 354 | |
353 | 355 | if ( isset( $zipPieces[1] )) { |
354 | | - if ( strlen( $zipPieces[1] ) == 4 || !is_numeric( $zipPieces[1] )) { |
| 356 | + if ( strlen( $zipPieces[1] ) != 4 || !is_numeric( $zipPieces[1] )) { |
355 | 357 | return false; |
356 | 358 | } |
357 | 359 | } |