diff save.php @ 1238:8c56eda17acd

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 124e6c702845
children 987ccc04250b
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');