소스 검색

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 {