Changeset 456 for dev/common/includes/class.pilot.php
- Timestamp:
- 09/19/09 06:42:19 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/includes/class.pilot.php
r455 r456 109 109 $this->corp_ = $row['plt_crp_id']; 110 110 $this->externalid_ = intval($row['plt_externalid']); 111 112 111 } 113 112 } … … 251 250 $this->externalid_ = intval($externalID); 252 251 $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_); 254 253 if($qry->recordCount()) 255 254 { 256 255 $result = $qry->getRow(); 257 $old_id = $result[' crp_id'];256 $old_id = $result['plt_id']; 258 257 $qry->execute("UPDATE kb3_pilots SET plt_id = 0 where plt_id = ".$old_id); 259 258 }