Show
Ignore:
Timestamp:
12/02/06 05:17:10 (14 years ago)
Author:
exi
Message:

Reduced one potential sql-bug.
Added ability to identify items as t2 via their techlevel rather than just 'II'.
Fixed item location 0 to not cause skipping that item.
Added anzahl/quantity-replace for the german killpreparser.
Fixed final blow award to show correct numbers.
Removed unnecessary code from db.php.
Added a table data check to the sql importer and made the importer more verbose, this should minimize support requests caused by empty table data.
Fixed a small misalignment of the comment block.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.kill.php

    r94 r133  
    367367                    order by itd.itd_itl_id, itm.itm_type"; 
    368368 
    369             $qry->execute($sql) or die($qry->getErrorMsg()); 
     369            $qry->execute($sql); 
    370370            while ($row = $qry->getRow()) 
    371371            { 
     
    670670        { 
    671671            $item = $dest->getItem(); 
    672             if (!$item->getID() || !$dest->getQuantity() || !$dest->getLocationID()) 
     672            if (!$item->getID() || !$dest->getQuantity() || $dest->getLocationID() === false) 
     673            { 
    673674                continue; 
     675            } 
    674676 
    675677            $sql = "insert into kb3_items_destroyed 
     
    792794    function getLocationID() 
    793795    { 
    794         $id = 0; 
     796        $id = false; 
    795797        if (strlen($this->location_) < 2) 
    796798        { 
     
    800802        { 
    801803            $qry = new DBQuery(); 
    802             $qry->execute("select itl_id from kb3_item_locations where itl_location = '".$this->location_."'") or die($qry->getErrorMsg()); 
     804            $qry->execute("select itl_id from kb3_item_locations where itl_location = '".$this->location_."'"); 
    803805            $row = $qry->getRow(); 
    804806            $id = $row['itl_id'];