فهرست منبع

Merge branch 'LocationV1API'

Iñigo Valentin 9 سال پیش
والد
کامیت
ecbbad0cfc
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      www/API/v1/location.php

+ 6 - 1
www/API/v1/location.php

@@ -60,6 +60,8 @@
 		//Bad request
 		http_response_code(400);
 		$error = $error . ERR_FORMAT . mysqli_real_escape_string($con, $_GET[GET_FORMAT]);
+		error_log($error);
+		exit(-1);
 	}
 	
 	//Get location
@@ -72,11 +74,14 @@
 				break;
 			default:
 				http_response_code(400);
-			$error = $error . ERR_FORMAT . mysqli_real_escape_string($con, $_GET[GET_FORMAT]);
+				$error = $error . ERR_FORMAT . mysqli_real_escape_string($con, $_GET[GET_FORMAT]);
+				error_log($error);
+				exit(-2);
 		}
 	}
 	else{
 		//No content
 		http_response_code(204);
+		exit(0);
 	}
 ?>