Log error in error_log and don't remove temporary directory
authorJoey Schulze <joey@infodrom.org>
Wed, 23 Jan 2013 22:44:28 +0000 (23:44 +0100)
committerJoey Schulze <joey@infodrom.org>
Wed, 23 Jan 2013 22:44:28 +0000 (23:44 +0100)
ordersatz_pos.php

index 65a7608..e8a9135 100644 (file)
@@ -244,7 +244,8 @@ function cb_pdf()
   $result = ordersatz_write($_SESSION['ordersatz'], $tmpdir, false);
 
   if ($result !== true) {
-    rm_tempdir($tmpdir);
+    error_log($tmpdir);
+    error_log($result);
     return array('error' => $result);
   }