Skip to content

Commit

Permalink
Fixed array access with unknown key (see #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffparnitzky committed Sep 6, 2023
1 parent 1631d9f commit 8beff94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions system/modules/DirectContentElements/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Contao Open Source CMS
* Copyright (C) 2005-2019 Leo Feyer
* Copyright (C) 2005-2023 Leo Feyer
*
* Formerly known as TYPOlight Open Source CMS.
*
Expand All @@ -21,7 +21,7 @@
* Software Foundation website at <http://www.gnu.org/licenses/>.
*
* PHP version 5
* @copyright Cliff Parnitzky 2014-2019
* @copyright Cliff Parnitzky 2014-2023
* @author Cliff Parnitzky
* @package DirectContentElements
* @license LGPL
Expand All @@ -36,7 +36,7 @@
'tables' => array('tl_direct_content_elements_articles')
);

if(TL_MODE == 'BE' && $_GET['do'] == 'directContentElementsArticles' && $_GET['act'] == 'editAll' && $_GET['fields'] == null)
if (TL_MODE == 'BE' && Input::get('do') == 'directContentElementsArticles' && Input::get('act') == 'editAll' && Input::get('fields') == null)
{
\Controller::redirect(str_replace('do=directContentElementsArticles', 'do=article&amp;table=tl_content', \Environment::get('request')));
}
Expand All @@ -51,7 +51,7 @@
'tables' => array('tl_direct_content_elements_events')
);

if(TL_MODE == 'BE' && $_GET['do'] == 'directContentElementsEvents' && $_GET['act'] == 'editAll' && $_GET['fields'] == null)
if (TL_MODE == 'BE' && Input::get('do') == 'directContentElementsEvents' && Input::get('act') == 'editAll' && Input::get('fields') == null)
{
\Controller::redirect(str_replace('do=directContentElementsEvents', 'do=calendar&amp;table=tl_content', \Environment::get('request')));
}
Expand All @@ -65,7 +65,7 @@
'tables' => array('tl_direct_content_elements_news')
);

if(TL_MODE == 'BE' && $_GET['do'] == 'directContentElementsNews' && $_GET['act'] == 'editAll' && $_GET['fields'] == null)
if (TL_MODE == 'BE' && Input::get('do') == 'directContentElementsNews' && Input::get('act') == 'editAll' && Input::get('fields') == null)
{
\Controller::redirect(str_replace('do=directContentElementsNews', 'do=news&amp;table=tl_content', \Environment::get('request')));
}
Expand Down

0 comments on commit 8beff94

Please sign in to comment.