Undefined index: i → +isset()
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 21:37:13 +0000 (23:37 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 21:37:13 +0000 (23:37 +0200)
html/inscripcion.php

index 8d4e8ed35ae41474f2abd2cbd3248cc93380cf60..a8f4205273051ea8fe6162ed899db33ea862e5cf 100755 (executable)
@@ -308,7 +308,7 @@ if (count ($Grupos) == 1) {
 if ($Org == "wmes") print ("<p>{$DI["asociadona"]}</p>");
 print ("</td>");
 
-$Img = ($_GET["i"] ? $_GET["i"] : $E);
+$Img = (isset($_GET["i"]) ? $_GET["i"] : $E);
 $Web = ($DE["web"] ? $DE["web"] : wikiencode ("https://{$DP["web"]}/wiki/", $DE["página"][$P], NULL, NULL, NULL));
 foreach (array ("jpg", "png") as $Ext) {
     if (file_exists ("img/{$Img}.{$Ext}")) print ("<td><a href=\"{$Web}\" target=\"_blank\"><img src=\"/inscripcion/img/{$Img}.{$Ext}\" width=\"150\" /></a></td>");
@@ -475,4 +475,4 @@ El envío de los datos implica tu <b>consentimiento</b> para que los incluyamos
 ?>
 <center><input type="submit" value="<?= $DI["enviardatos"] ?>" /></center>
 </FORM>
-</body></html>
\ No newline at end of file
+</body></html>