changeset 583:6833d8c2b52e Dev_main

Error levels should be set before messing around with timezone, as that may trigger warnings on some systems
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 06 Mar 2016 20:55:00 +0000
parents fc6720146f80
children d8be8a1111b6 a5747ae37d03 328f24798462
files save.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/save.php	Sun Mar 06 19:24:19 2016 +0000
+++ b/save.php	Sun Mar 06 20:55:00 2016 +0000
@@ -1,4 +1,5 @@
 <?php
+	error_reporting(0);
     try{
         date_default_timezone_get();
     }
@@ -7,7 +8,6 @@
     }
 	header('Access-Control-Allow-Origin: *');
 	header("Content-type: text/xml");
-	error_reporting(0);
 	$postText = file_get_contents('php://input');
 	$sha1_hash = sha1($postText);
 	$datetime = date('ymdHis');