terminal42 / contao-changelanguage

ChangeLanguage is an extension for the Contao CMS which allows visitors to switch between different languages of your website.
44 stars 35 forks source link

Nachrichten/News: Error bei Artikelverknüpfung #201

Closed katgirl closed 3 years ago

katgirl commented 3 years ago

Fehler beim Verknüpfen von Nachrichten

[2021-08-23 17:15:09] request.CRITICAL: Uncaught PHP Exception TypeError: "strtotime() expects parameter 2 to be int, string given" at vendor/terminal42/contao-changelanguage/src/EventListener/DataContainer/NewsListener.php line 44 {"exception":"[object] (TypeError(code: 0): strtotime() expects parameter 2 to be int, string given at vendor/terminal42/contao-changelanguage/src/EventListener/DataContainer/NewsListener.php:44)"} []

Lösung:

$group = strtotime('0:00', (int)$model->date) === $dayBegin ? $sameDay : $otherDay;
fritzmg commented 3 years ago

Duplicate of https://github.com/terminal42/contao-changelanguage/pull/198

katgirl commented 3 years ago

sorry, pull habe ich nicht gesehen