Changeset 456

Show
Ignore:
Timestamp:
09/19/09 06:42:19 (13 years ago)
Author:
kovell
Message:

Fixed typos in character ID update code

Location:
dev/common/includes
Files:
2 modified

Legend:

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

    r455 r456  
    109109                $this->corp_ = $row['plt_crp_id']; 
    110110                $this->externalid_ = intval($row['plt_externalid']); 
    111  
    112111            } 
    113112        } 
     
    251250        $this->externalid_ = intval($externalID); 
    252251        $qry = new DBQuery(); 
    253                 $qry->execute("SELECT plt_id FROM kb3_pilots WHERE plt_external_id = ".$externalid." AND plt_id <> ".$this->id_); 
     252                $qry->execute("SELECT plt_id FROM kb3_pilots WHERE plt_externalid = ".$this->externalid_." AND plt_id <> ".$this->id_); 
    254253                if($qry->recordCount()) 
    255254                { 
    256255                        $result = $qry->getRow(); 
    257                         $old_id = $result['crp_id']; 
     256                        $old_id = $result['plt_id']; 
    258257                        $qry->execute("UPDATE kb3_pilots SET plt_id = 0 where plt_id = ".$old_id); 
    259258                } 
  • dev/common/includes/globals.php

    r455 r456  
    77else 
    88{ 
    9         $svn_rev = '455'; 
     9        $svn_rev = '456'; 
    1010} 
    1111define('SVN_REV', $svn_rev);