From fa333b6e1f3dedb51fd133ad3a4da146bcf4edc3 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Mon, 23 Jan 2012 21:53:57 +0100 Subject: [PATCH] Leave artnr field empty in output when it is uknown --- utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.php b/utils.php index f7c4729..6728aae 100644 --- a/utils.php +++ b/utils.php @@ -147,9 +147,9 @@ function ordersatz_write($id, $dir, $send) if (strlen($row['hersteller'])) $bez .= ' (' . $row['hersteller'] . ')'; - fwrite($f, sprintf('\order{%d}{%d}{%s %s}{%s}'."\n", + fwrite($f, sprintf('\order{%d}{%s}{%s %s}{%s}'."\n", $row['anzahl'], - $row['artnr'], + $row['artnr'] ? (int)$row['artnr'] : '', $row['menge'], latex_encode($bez), latex_encode($row['vpname']))); -- 2.20.1