Skip to content

Commit

Permalink
Merge pull request #95 from yon2004/master
Browse files Browse the repository at this point in the history
Fix null pointer dereference with PHP8
  • Loading branch information
BarbarossaTM authored Apr 16, 2023
2 parents 4ce6ad1 + 2a79703 commit 505020e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-pick.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function applyDSFilterChange(objForm) {
}

$i=0;
if ($devices->isNotEmpty()) {
if ($devices !== null && $devices->isNotEmpty()) {
foreach ($devices as $device) {
if (!is_null($device->ports)) {
foreach ($device->ports as $port) {
Expand Down

0 comments on commit 505020e

Please sign in to comment.