Changeset 405
- Timestamp:
- 07/07/09 03:09:47 (13 years ago)
- Location:
- dev/common/includes
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.kill.php
r400 r405 1117 1117 1118 1118 event::call('killmail_delete', $this); 1119 allianceSummary::delKill($this); 1120 corpSummary::delKill($this); 1121 pilotSummary::delKill($this); 1119 1122 1120 1123 $qry = new DBQuery(); … … 1131 1134 $qry->execute("delete from kb3_comments where kll_id = ".$this->id_); 1132 1135 } 1136 allianceSummary::delKill($this); 1137 corpSummary::delKill($this); 1138 pilotSummary::delKill($this); 1133 1139 } 1134 1140 -
dev/common/includes/class.summary.php
r404 r405 446 446 $alls = array(); 447 447 $qry = new DBQuery(); 448 $qry->execute("SELECT 1 FROM kb3_sum_pilot WHERE psm_plt_id = ".$kill->getVictim pilotID());448 $qry->execute("SELECT 1 FROM kb3_sum_pilot WHERE psm_plt_id = ".$kill->getVictimID()); 449 449 // No summary table to remove kill from so skip. 450 450 if($qry->recordCount()) … … 452 452 $sql = "UPDATE kb3_sum_pilot SET psm_loss_count = psm_loss_count - 1, ". 453 453 " psm_loss_isk = psm_loss_isk - ".$kill->getISKLoss(). 454 " WHERE psm_plt_id = ".$kill->getVictim pilotID().454 " WHERE psm_plt_id = ".$kill->getVictimID(). 455 455 " AND psm_shp_id = ".$kill->getVictimShip()->getClass()->getID(); 456 456 $qry->execute($sql); … … 458 458 foreach($kill->involvedparties_ as $inv) 459 459 { 460 if(intval($alls[$inv->get pilotID()])) continue;461 $alls[$inv->get pilotID()] = 1;462 $qry->execute("SELECT 1 FROM kb3_sum_pilot WHERE psm_plt_id = ".$inv->get pilotID());460 if(intval($alls[$inv->getPilotID()])) continue; 461 $alls[$inv->getPilotID()] = 1; 462 $qry->execute("SELECT 1 FROM kb3_sum_pilot WHERE psm_plt_id = ".$inv->getPilotID()); 463 463 if(!$qry->recordCount()) continue; 464 464 $sql = "UPDATE kb3_sum_pilot SET psm_kill_count = psm_kill_count - 1, ". 465 465 " psm_kill_isk = psm_kill_isk - ".$kill->getISKLoss(). 466 " WHERE psm_plt_id = ".$inv->get pilotID().466 " WHERE psm_plt_id = ".$inv->getPilotID(). 467 467 " AND psm_shp_id = ".$kill->getVictimShip()->getClass()->getID(); 468 468 $qry->execute($sql);