Fix E_NOTICE - refs #7456

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent a9aec19920
commit 4f50292e2b
  1. 6
      main/exercice/hotpotatoes.php

@ -45,6 +45,12 @@ $uploadPath = '/HotPotatoes_files';
$finish = (!empty($_POST['finish']) ? $_POST['finish'] : 0);
$imgcount = (!empty($_POST['imgcount']) ? $_POST['imgcount'] : null);
$fld = (!empty($_POST['fld']) ? $_POST['fld'] : null);
$imgparams = [];
$dialogBox = '';
if ($finish == 2 && isset($_POST['imgparams'])) {
$imgparams = $_POST['imgparams'];
}
// If user is allowed to edit...
if (api_is_allowed_to_edit(null, true)) {

Loading…
Cancel
Save