219 | | // Error Correction is on (0 = on, 1 = off(I know, just don't ask)) |
220 | | if ( $this->API_CCPErrorCorrecting == 0 ) |
221 | | { |
222 | | if ( ($this->charid_ != "0" ) && (strlen($this->pname_) == 0) ) |
223 | | { |
224 | | // name is blank but ID is valid - convert ID into name |
225 | | $this->myIDName->clear(); |
226 | | $this->myIDName->setIDs($this->charid_); |
227 | | $this->Output_ .= $this->myIDName->fetchXML(); |
228 | | $myNames = $this->myIDName->getIDData(); |
229 | | $this->pname_ = $myNames[0]['name']; |
230 | | } |
231 | | } |
239 | | // Error Correction is on (0 = on, 1 = off(I know, just don't ask)) |
240 | | if ( $this->API_CCPErrorCorrecting == 0 ) |
241 | | { |
242 | | if ( ($this->corporationID_ != "0" ) && (strlen($this->corporation_) == 0) ) |
243 | | { // name is blank but ID is valid - convert ID into name |
244 | | $this->myIDName->clear(); |
245 | | $this->myIDName->setIDs($this->corporationID_); |
246 | | $this->Output_ .= $this->myIDName->fetchXML(); |
247 | | $myNames = $this->myIDName->getIDData(); |
248 | | $this->corporation_ = $myNames[0]['name']; |
249 | | } |
250 | | } |
257 | | |
258 | | // Error Correction is on (0 = on, 1 = off(I know, just don't ask)) |
259 | | //if ( $this->API_CCPErrorCorrecting == 0 ) |
260 | | // conditional branch removed - ALWAYS fix alliance name bugs |
261 | | { |
262 | | if ( ($this->allianceID_ != "0" ) && (strlen($this->alliance_) == 0) ) |
263 | | { // name is blank but ID is valid - convert ID into name |
264 | | $this->myIDName->clear(); |
265 | | $this->myIDName->setIDs($this->allianceID_); |
266 | | $this->Output_ .= $this->myIDName->fetchXML(); |
267 | | $myNames = $this->myIDName->getIDData(); |
268 | | $this->alliance_ = $myNames[0]['name']; |
269 | | } |
270 | | } |