Changeset 486 for trunk/cgi-bin/IPDB.pm


Ignore:
Timestamp:
09/23/10 00:56:57 (14 years ago)
Author:
Kris Deugau
Message:

/trunk

Bugfix to prevent bizarre errors in admin.cgi - force desc, notes, circid, and
privdata to if they're not defined. (Or "Perl false", at least.)

File:
1 edited

Legend:

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

    r485 r486  
    316316  my $alloc_from = new NetAddr::IP $_[2];
    317317  my $sth;
     318
     319  $desc = '' if !$desc;
     320  $notes = '' if !$notes;
     321  $circid = '' if !$circid;
     322  $privdata = '' if !$privdata;
    318323
    319324  # Snag the "type" of the freeblock (alloc_from) "just in case"
Note: See TracChangeset for help on using the changeset viewer.