From 8e3901c64cea5e09bd8736f23eb15d4f57269af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Wed, 23 Dec 2015 10:53:51 +0100 Subject: [PATCH] Fixed compatibility with PHP 7 --- src/MadeYourDay/Contao/Slider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MadeYourDay/Contao/Slider.php b/src/MadeYourDay/Contao/Slider.php index 2652538..64d16cf 100644 --- a/src/MadeYourDay/Contao/Slider.php +++ b/src/MadeYourDay/Contao/Slider.php @@ -54,7 +54,7 @@ public function toggleVisibility($intId, $blnVisible) if (is_array($GLOBALS['TL_DCA']['tl_rocksolid_slide']['fields']['published']['save_callback'])) { foreach ($GLOBALS['TL_DCA']['tl_rocksolid_slide']['fields']['published']['save_callback'] as $callback) { $this->import($callback[0]); - $blnVisible = $this->$callback[0]->$callback[1]($blnVisible, $this); + $blnVisible = $this->{$callback[0]}->{$callback[1]}($blnVisible, $this); } }