FriendsOfTYPO3 / tt_address

Add address / contact datasets to your content management system.
GNU General Public License v2.0
38 stars 76 forks source link

PHP Warning: Trying to access array offset on null #524

Closed chrcan closed 4 months ago

chrcan commented 4 months ago

when I delete an address from the folder tt_address 8.0.3 in TYPO3 v12.4.14 I get this warning in the log:

Core: Error handler (BE): PHP Warning: Trying to access array offset on null in /var/www/html/vendor/friendsoftypo3/tt-address/Classes/Hooks/Tca/Label.php line 38

could you fix it like this? I’m not a programmer just by the way !!!

`// Sicherstellen, dass $row['pid'] vorhanden und nicht null ist if (!isset($row['pid']) || $row['pid'] === null) { return; }

$configuration = $this->getConfiguration((int) $row['pid']); if (!$configuration) { return; }`

georgringer commented 4 months ago

fixed with #513