Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #884 from ATr-URMA/master
Browse files Browse the repository at this point in the history
Added null test for PHP > 7.1
  • Loading branch information
stephanvierkant authored May 6, 2019
2 parents 9200d75 + a2f194b commit a050337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datatable/Column/DateTimeColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function renderToMany(array &$row)
if ($this->accessor->isReadable($row, $path)) {
$entries = $this->accessor->getValue($row, $path);

if (count($entries) > 0) {
if (!is_null($entries) && count($entries) > 0) {
foreach ($entries as $key => $entry) {
$currentPath = $path . '[' . $key . ']' . $value;
$currentObjectPath = Helper::getPropertyPathObjectNotation($path, $key, $value);
Expand Down

0 comments on commit a050337

Please sign in to comment.