Răsfoiți Sursa

Fix E_NOTICE - refs #7456

Angel Fernando Quiroz Campos 9 ani în urmă
părinte
comite
4f50292e2b
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      main/exercice/hotpotatoes.php

+ 6 - 0
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)) {