tieupmedia / HwtTypo3HwtAddress

Modern Address extension for TYPO3
0 stars 3 forks source link

Typo 9.5.6 - PHP Warning at listAction with no addressStorage #5

Closed saschaluebeck closed 3 years ago

saschaluebeck commented 5 years ago

When not setting a addressStoragePages to use single Adresses instead, an php Error appears:

PHP Warning: count(): Parameter must be an array or an object that implements Countable in ***\typo3conf\ext\hwt_address\Classes\Controller\AddressController.php line 102.

Suggestions: change line 102 to

if ((!$addressRecords || (count($addressRecords)==0)) && $this->settings['addressRecords']) {

tieupmedia commented 5 years ago

Hey Sascha,

thank you much, for reporting!

It's just fixed in the current master, after @amtee discovered this, too. The next TER release including the fix will be available in the upcoming days.

Best regards!

saschaluebeck commented 5 years ago

Ah, I see. All right! Thanks for this pretty nice extension! Good work :)

tieupmedia commented 5 years ago

Thank you for your commendation! If you have any suggestion for further improvements or new features, please let me know.

tieupmedia commented 4 years ago

See 1dd45d7

tieupmedia commented 3 years ago

Resolved with release 0.2.1