Show
Ignore:
Timestamp:
01/03/07 09:06:54 (16 years ago)
Author:
exi
Message:

Added options to show loss and totalpoints in pilot details.
Tidied up class.box.php.
class.kill.php now checks better for item location ids.
Added victimalliancename to the killlisttable.
The signature generator now paints error messages if he doesnt like stuff.

Files:
1 modified

Legend:

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

    r155 r165  
    372372                    where itd.itd_kll_id = ".$this->getID()." 
    373373                    and itd.itd_itm_id = itm.itm_id 
    374                     and ( itd.itd_itl_id = itl.itl_id or itd.itd_itl_id = 0 ) 
     374                    and ( itd.itd_itl_id = itl.itl_id or (itd.itd_itl_id = 0 and itl.itl_id = 1)) 
    375375                    group by itd_itm_id, itd_itl_id 
    376376                    order by itd.itd_itl_id, itm.itm_type"; 
     
    685685        { 
    686686            $item = $dest->getItem(); 
    687             if (!$item->getID() || !$dest->getQuantity() || $dest->getLocationID() === false) 
     687            $loc_id = $dest->getLocationID(); 
     688            if (!$item->getID() || !$dest->getQuantity() || !is_numeric($loc_id)) 
    688689            { 
    689690                continue; 
     
    692693            $sql = "insert into kb3_items_destroyed 
    693694                        values ( ".$this->getID().", ".$item->getID().", ".$dest->getQuantity().", " 
    694                     .$dest->getLocationID()." )"; 
     695                    .$loc_id." )"; 
    695696            $qry->execute($sql); 
    696697        }