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)
)
);
}