Index: trunk/extensions/CongressLookup/SpecialCongressFail.php |
— | — | @@ -37,16 +37,18 @@ |
38 | 38 | $out->addHtml('Thank you!'); |
39 | 39 | |
40 | 40 | } else { |
41 | | - $out->addHtml('<div>'); |
42 | | - $out->addHtml('ZIP Code (will be recorded): ' . $zip); |
43 | | - $out->addHtml('</div>'); |
44 | | - |
45 | 41 | $out->addHtml('<form method=post action="/wiki/Special:CongressFail">'); |
46 | | - |
47 | 42 | $out->addHtml('<div>'); |
48 | | - $out->addHtml('<input type=hidden name=zip value=' . $zip. '>'); |
49 | | - $out->addHtml('Tell us what went wrong: <input type=text size=100 maxlength=255 name=comment>'); |
| 43 | + $out->addHtml('<div>'); |
| 44 | + if ( $zip != 0 ) { |
| 45 | + $out->addHtml('ZIP Code (will be recorded): ' . $zip); |
| 46 | + $out->addHtml('<input type=hidden name=zip value=' . $zip . '>'); |
| 47 | + } else { |
| 48 | + $out->addHtml('ZIP code: <input name=zip>'); |
| 49 | + } |
50 | 50 | $out->addHtml('</div>'); |
| 51 | + $out->addHtml('Tell us what went wrong: <input type=text size=100 name=comment maxlength=255>'); |
| 52 | + $out->addHtml('</div>'); |
51 | 53 | |
52 | 54 | $out->addHtml('<div>'); |
53 | 55 | $out->addHtml('<input type=submit name=store value="Send Error Report">'); |