wisechild1 Posted April 22, 2012 Report Share 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 Link to comment Share on other sites More sharing options...
Nighthawk Posted April 22, 2012 Report Share Posted April 22, 2012 What does this Fix? Quote Link to comment Share on other sites More sharing options...
wisechild1 Posted April 22, 2012 Author Report Share Posted April 22, 2012 What does this Fix? It fixes flights flown count for each pilot from showing 0. Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted April 24, 2012 Moderators Report Share Posted April 24, 2012 Yep, I noticed that on the beta builds. Table Prefixes errors. Quote Link to comment Share on other sites More sharing options...
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.