Show
Ignore:
Timestamp:
04/02/07 18:14:01 (16 years ago)
Author:
ralle030583
Message:

- fixed a small bug with cause SQL Errors when you have settings to avoid podkills and try to add Victim shipclasses at same time
- added new statistics "Destroyed/Lost? Ship(types)" to alliance_detail.php for Corps and Pilots

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.toplist.php

    r190 r199  
    277277        $this->setSQLBottom("group by ind.ind_plt_id order by 1 desc 
    278278                            limit 30"); 
    279         $this->setPodsNoobShips(false); 
     279                if (count($this->vic_scl_id)){ 
     280                        $this->setPodsNoobShips(false); 
     281                } 
    280282    } 
    281283} 
     
    290292    function generate() 
    291293    { 
    292         $sql = "select count(*) as cnt, ind.ind_crp_id as crp_id 
     294        $sql = "select count(distinct(kll.kll_id)) as cnt, ind.ind_crp_id as crp_id 
    293295                from kb3_kills kll 
    294296              inner join kb3_inv_detail ind 
     
    305307        $this->setSQLBottom("group by ind.ind_crp_id order by 1 desc 
    306308                            limit 30"); 
    307         $this->setPodsNoobShips(false); 
     309                if (count($this->vic_scl_id)){ 
     310                        $this->setPodsNoobShips(false); 
     311                } 
    308312    } 
    309313} 
     
    357361        $this->setSQLBottom("group by kll.kll_victim_id order by 1 desc 
    358362                            limit 30"); 
    359         $this->setPodsNoobShips(false); 
     363                 if (count($this->vic_slc_id_)){ 
     364                        $this->setPodsNoobShips(false); 
     365                } 
    360366    } 
    361367} 
     
    374380        $this->setSQLBottom("group by kll.kll_crp_id order by 1 desc 
    375381                            limit 30"); 
    376         $this->setPodsNoobShips(false); 
     382        if (count($this->vic_slc_id_)){ 
     383                        $this->setPodsNoobShips(false);  
     384                } 
    377385    } 
    378386} 
     
    905913        while ($row = $this->toplist_->getRow()) 
    906914        { 
    907             $item = new Item($row['itm_id']); 
     915                        $item = new Item($row['itm_id']); 
    908916            if ($odd) 
    909917            { 
     
    929937    } 
    930938} 
    931  
    932939?>