wisechild1 Posted April 22, 2012 Report Posted April 22, 2012 Hi, there is some error in getReportsByAcceptStatus function in PIREPData.class.php. It is in around line 438. Change /** * Get all of a pilot's reports by status * * @param int $pilotid The Pilot ID to find * @param integer $accept PIREP_PENDING, PIREP_ACCEPTED, PIREP_REJECTED, PIREP_INPROGRESS * @return */ public static function getReportsByAcceptStatus($pilotid, $accept = 0) { return self::findPIREPS(array( 'pilotid' => intval($pilotid), 'accepted' => intval($accept) ) ); } to /** * Get all of a pilot's reports by status * * @param int $pilotid The Pilot ID to find * @param integer $accept PIREP_PENDING, PIREP_ACCEPTED, PIREP_REJECTED, PIREP_INPROGRESS * @return */ public static function getReportsByAcceptStatus($pilotid, $accept = 0) { return self::findPIREPS(array( 'p.pilotid' => intval($pilotid), 'p.accepted' => intval($accept) ) ); } Quote
wisechild1 Posted April 22, 2012 Author Report Posted April 22, 2012 What does this Fix? It fixes flights flown count for each pilot from showing 0. Quote
Moderators Kyle Posted April 24, 2012 Moderators Report Posted April 24, 2012 Yep, I noticed that on the beta builds. Table Prefixes errors. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.