Plugin: Zoom: Remove Heredoc syntax causing parse error - refs BT#17288

pull/3376/head
Yannick Warnier 5 years ago
parent 4aaaca2de0
commit 90da4ffa41
  1. 6
      plugin/zoom/lib/zoom_plugin.class.php

@ -1,5 +1,4 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\PluginBundle\Zoom\API\CreatedRegistration;
@ -474,10 +473,7 @@ class ZoomPlugin extends Plugin
);
$groupIdsSelect->setMultiple(true);
if (!empty($groups)) {
$jsCode = sprintf(
<<<EOF
getElementById('%s').parentNode.parentNode.parentNode.style.display = getElementById('%s').checked ? 'block' : 'none'
EOF,
$jsCode = sprintf("getElementById('%s').parentNode.parentNode.parentNode.style.display = getElementById('%s').checked ? 'block' : 'none'",
$groupIdsSelect->getAttribute('id'),
$userRegistrationRadio->getelements()[1]->getAttribute('id')
);

Loading…
Cancel
Save