Changeset 165 for dev/common/class.kill.php
- Timestamp:
- 01/03/07 09:06:54 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/class.kill.php
r155 r165 372 372 where itd.itd_kll_id = ".$this->getID()." 373 373 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)) 375 375 group by itd_itm_id, itd_itl_id 376 376 order by itd.itd_itl_id, itm.itm_type"; … … 685 685 { 686 686 $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)) 688 689 { 689 690 continue; … … 692 693 $sql = "insert into kb3_items_destroyed 693 694 values ( ".$this->getID().", ".$item->getID().", ".$dest->getQuantity().", " 694 .$ dest->getLocationID()." )";695 .$loc_id." )"; 695 696 $qry->execute($sql); 696 697 }