FriendsOfTYPO3 / tt_address

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

Undefined array key "pages" #529

Closed MacGyer closed 6 months ago

MacGyer commented 6 months ago

Bug Report

Current Behavior PHP 8.1 warning of undefined array key "pages" because $this->settings['pages'] is evaluated without fallback in https://github.com/FriendsOfTYPO3/tt_address/blob/master/Classes/Controller/AddressController.php#L165.

Expected behavior/output No warning/error should be emitted

Environment

Possible Solution

if ($this->settings['pages'] ?? false) {
    $demand->setPages($this->getPidList());
}

Additional context none

georgringer commented 6 months ago

thanks