From f0d5bc2d463a155b8094926f124826d9ad496f00 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 10 Mar 2008 18:16:09 +0000 Subject: [PATCH] fix: creation of customers with positive IDs git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@113 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- www/inc/classes/customer.php | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/www/inc/classes/customer.php b/www/inc/classes/customer.php index cfc3483..ed21420 100644 --- a/www/inc/classes/customer.php +++ b/www/inc/classes/customer.php @@ -294,11 +294,13 @@ function setCustomerXml($xmldata) if($id>=0){ $db->update("customer",$dt,"customerid=".$db->escapeInt($id)); + header("X-MagicSmoke-Status: Ok"); + print($id); }else{ - $dt["customerid"]=$id; - $db->insert("customer",$dt); + $id=$db->insert("customer",$dt); + header("X-MagicSmoke-Status: Ok"); + print($id); } - header("X-MagicSmoke-Status: Ok"); } ?> \ No newline at end of file -- 1.7.2.5