terminal42 / contao-notification_center

The most popular notification configuration extension for the Contao Open Source CMS!
63 stars 38 forks source link

Check if gateway still exists #340

Closed fritzmg closed 2 months ago

fritzmg commented 3 months ago

If you uninstall a gateway, the following error will occur in the back end when editing gateways:

ErrorException:
Warning: Undefined array key "foobar"

  at vendor\terminal42\notification_center\library\NotificationCenter\Model\Gateway.php:40
  at NotificationCenter\Model\Gateway->getGateway()
     (vendor\terminal42\notification_center\classes\tl_nc_gateway.php:111)

This adds appropriate checks for that.

fritzmg commented 2 months ago

Reminder @Toflar @aschempp - or can I just merge indiscriminately? 😁

Toflar commented 2 months ago

Go ahead.