浏览代码

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

Victor De la Rocha 18 年前
父节点
当前提交
b47d00017a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      index.php

+ 3 - 3
index.php 查看文件

@@ -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 {