Skip to content

Commit

Permalink
...and check !empty() for good measure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 9, 2016
1 parent c633116 commit 8e2fc44
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -84,9 +84,9 @@ protected function _populateTable()
str_replace($data[7] . '-', '', $data[8]),
$data[7],
$data[9],
round($data[3], 4),
round($data[4], 4),
$data[5])
!empty($data[3]) ? round($data[3], 4) : 0,
!empty($data[4]) ? round($data[4], 4) : 0,
!empty($data[5]) ? $data[5] : 0)
);
} catch (Horde_Db_Exception $e) {
$this->announce('ERROR: ' . $e->getMessage());
Expand Down

0 comments on commit 8e2fc44

Please sign in to comment.