Skip to content

Commit

Permalink
Fixed compatibility with PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Dec 23, 2015
1 parent 87323e4 commit 38c729a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MadeYourDay/Contao/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ protected function createDca($dc, $type, $createFromPost = false, $tmpField = nu
if ($config['onloadCallback'] && is_array($config['onloadCallback'])) {
foreach ($config['onloadCallback'] as $callback) {
if (is_array($callback)) {
\System::importStatic($callback[0])->$callback[1]($dc);
\System::importStatic($callback[0])->{$callback[1]}($dc);
}
else if (is_callable($callback)) {
$callback($dc);
Expand Down

0 comments on commit 38c729a

Please sign in to comment.