Skip to content

Commit

Permalink
Merge pull request #12 from marcel-mathias-nolte/master
Browse files Browse the repository at this point in the history
Fix error in Contao 4.13 / PHP 8.1
  • Loading branch information
OMOSde authored Feb 18, 2022
2 parents 5912cf2 + ea7f60a commit 170cd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/classes/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public function handleManipulationsBackend($arrFiles)
public function handleButtonManipulate()
{
// handle button edit
if ($_POST['FORM_SUBMIT'] == 'tl_files' && isset($_POST['manipulate']))
if (is_array($_POST) && isset($_POST['FORM_SUBMIT']) && $_POST['FORM_SUBMIT'] == 'tl_files' && isset($_POST['manipulate']))
{
// manipulate the selected image
Imagine::handleButtonEdit([TL_ROOT.'/'.$_GET['id']], $_POST['manipulation']);
}

// handle button edit all
if ($_POST['FORM_SUBMIT'] == 'tl_select' && isset($_POST['manipulate']))
if (is_array($_POST) && isset($_POST['FORM_SUBMIT']) && $_POST['FORM_SUBMIT'] == 'tl_select' && isset($_POST['manipulate']))
{
if (is_array($_POST['IDS']) && !empty($_POST['IDS']))
{
Expand Down

0 comments on commit 170cd56

Please sign in to comment.