Changeset 667


Ignore:
Timestamp:
Sep 21, 2008, 10:20:12 PM (11 years ago)
Author:
Nick Burch
Message:

Workaround perl 0 = false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/exporter/export.pl

    r666 r667  
    126126
    127127        if($mode eq "-gpsonly" || $mode eq "-npeonly" || $mode eq "-postboxonly" || $mode eq "-all") {
    128                 my $source;
     128                my $source = -1;
    129129                if($mode eq "-gpsonly") {
    130130                        $source = getSource("FreeThePostcode.org Importer", $conn);
     
    136136
    137137                my $source_sql = "";
    138                 if($source) {
     138                if($source >= 0) {
    139139                        $source_sql = " AND source = ? ";
    140140                }
     
    149149
    150150                my $sth = $conn->prepare($sql);
    151                 if($source) {
     151                if($source >= 0) {
    152152                        $sth->bind_param(1, $source);
    153153                }
Note: See TracChangeset for help on using the changeset viewer.