Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -345,12 +345,12 @@ |
346 | 346 | public function isValidZip( $zip ) { |
347 | 347 | $zipPieces = explode( '-', $zip, 2 ); |
348 | 348 | |
349 | | - if ( strlen( $zipPieces[0] ) < 5 || !is_numeric( $zipPieces[0] )) { |
| 349 | + if ( strlen( $zipPieces[0] ) == 5 || !is_numeric( $zipPieces[0] )) { |
350 | 350 | return false; |
351 | 351 | } |
352 | 352 | |
353 | 353 | if ( isset( $zipPieces[1] )) { |
354 | | - if ( strlen( $zipPieces[1] ) < 4 || !is_numeric( $zipPieces[1] )) { |
| 354 | + if ( strlen( $zipPieces[1] ) == 4 || !is_numeric( $zipPieces[1] )) { |
355 | 355 | return false; |
356 | 356 | } |
357 | 357 | } |