Skip to content

Commit

Permalink
Merge pull request #16 from zonky2/patch-1
Browse files Browse the repository at this point in the history
Update tl_page.php
  • Loading branch information
dmolineus authored May 22, 2023
2 parents cc8f70f + 31e79c3 commit 8528ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static function (): void {
* FIXME OH: this is a temp workaround to speed up saving of edit all in translation group be module
* https://github.com/hofff/contao-language-relations/issues/2
*/
if ($_GET['do'] === 'hofff_language_relations_group') {
if (isset($_GET['do']) && $_GET['do'] === 'hofff_language_relations_group') {
$onsubmit = &$GLOBALS['TL_DCA']['tl_page']['config']['onsubmit_callback'];
foreach ($onsubmit as $i => $callback) {
if (! is_array($callback)) {
Expand Down

0 comments on commit 8528ed1

Please sign in to comment.