Quellcode durchsuchen

Fix E_NOTICE - refs #7456

Angel Fernando Quiroz Campos vor 9 Jahren
Ursprung
Commit
4f50292e2b
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  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)) {