From 45690ff2012e1bb4343d0543c2d3dcf647393d79 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Tue, 19 Jun 2012 14:29:09 +0200 Subject: [PATCH] Index abfangen --- peppershop/erplib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peppershop/erplib.php b/peppershop/erplib.php index 00be5c142..8b22d42eb 100644 --- a/peppershop/erplib.php +++ b/peppershop/erplib.php @@ -49,7 +49,7 @@ class erp { $sql = "SELECT warehouse_id from bin where id = ".$this->lager; $rs = $this->db->getOne($sql); if ( $rs['warehouse_id'] > 0 ) { - $this->warehouse_id = $rs['warehouse_id']; + $this->warehouse_id = $rs['warehouse_id']; $sql = "SELECT id from transfer_type WHERE direction = 'in' and description = 'stock'"; $rs = $this->db->getOne($sql); $this->transtype = $rs['id']; @@ -69,7 +69,7 @@ class erp { $rs = $this->db->getAll($sql); if ($rs) foreach ($rs as $row) { $nr = $row['bugru']; - if (!$this->TAX[$nr]) { + if ( !$this->TAX[$nr] || !array_key_exists($nr, $this->TAX) ) { $data = array(); $data['startdate'] = $row['startdate']; $data['rate'] = $row['rate']; -- 2.20.1