Skip to content

Commit

Permalink
Added qualifier to avoid Creating default object from empty value war…
Browse files Browse the repository at this point in the history
…ning.

Signed-off-by: DavidJClark <david@noticeabledesigns.com>
  • Loading branch information
DavidJClark committed Jan 25, 2016
1 parent a6f6429 commit f0c3008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/common/PIREPData.class.php
Expand Up @@ -324,7 +324,9 @@ public static function getReportDetails($pirepid) {
WHERE p.pilotid=u.pilotid AND p.pirepid=' . $pirepid;

$row = DB::get_row($sql);
$row->rawdata = unserialize($row->rawdata);
if($row != NULL) {
$row->rawdata = unserialize($row->rawdata);
}

/* Do any specific replacements here */
if ($row) {
Expand Down

0 comments on commit f0c3008

Please sign in to comment.