Changeset 183 for trunk/cgi-bin


Ignore:
Timestamp:
03/01/05 16:05:45 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Change database connection check slightly to select from the
alloctypes table (which should be preseeded) rather than from
any of the other tables (which may be empty).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r167 r183  
    122122# Return here if we can't select.  Note that this indicates a
    123123# problem executing the select.
    124   my $sth = $dbh->prepare("select cidr from masterblocks");
     124  my $sth = $dbh->prepare("select type from alloctypes");
    125125  $sth->execute();
    126126  return (undef,$DBI::errstr) if ($sth->err);
Note: See TracChangeset for help on using the changeset viewer.