Selaa lähdekoodia

Agregado if(isset($_SERVER['PATH_INFO'])) antes de $param_url = explode("/",$_SERVER['PATH_INFO']);

Victor De la Rocha 18 vuotta sitten
vanhempi
commit
b47d00017a
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      index.php

+ 3 - 3
index.php Näytä tiedosto

@@ -22,9 +22,9 @@
22 22
 	$conf = new configuration();
23 23
 	$tumble = new gelato();
24 24
 	$template = new plantillas($conf->template);
25
-	
26
-	$param_url = explode("/",$_SERVER['PATH_INFO']);
27
-	
25
+
26
+	if(isset($_SERVER['PATH_INFO'])) $param_url = explode("/",$_SERVER['PATH_INFO']);
27
+
28 28
 	if (isset($_GET["post"])) {
29 29
 		$id_post = $_GET["post"];
30 30
 	} else {