From 13da4432f5b66c141e6a66cd62cf7d757d267304 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Thu, 3 Feb 2011 12:25:01 +0100 Subject: [PATCH] Noch ein wenig veraltet --- lxo-import/import_lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lxo-import/import_lib.php b/lxo-import/import_lib.php index eaba7463f..5d282030e 100644 --- a/lxo-import/import_lib.php +++ b/lxo-import/import_lib.php @@ -253,7 +253,7 @@ function suchFirma($tab,$data) { if (!$rs) { $org=$data; while(strpos($data," ")>0) { - $data=ereg_replace(" "," ",$data); + $data=str_replace(" "," ",$data); } $data=preg_replace("/[^A-Z0-9]/ ",".*",trim($data)); $sql="select * from $tab where upper(name) ~ '$data'"; @@ -275,13 +275,13 @@ function getFirma($nummer,$tabelle) { $sql="select id from $tabelle where upper(".$tabelle."number) = '$nummer'"; $rs=$db->getAll($sql); if (!$rs) { - $nr=ereg_replace(" ","%",$nummer); + $nr=str_replace(" ","%",$nummer); $sql="select id,".$tabelle."number from $tabelle where upper(".$tabelle."number) like '$nr'"; $rs=$db->getAll($sql); if ($rs) { - $nr=ereg_replace(" ","",$nummer); + $nr=str_replace(" ","",$nummer); foreach ($rs as $row) { - $tmp=ereg_replace(" ","",$row[$tabelle."number"]); + $tmp=str_replace(" ","",$row[$tabelle."number"]); if ($tmp==$nr) return $row["id"]; } } else { -- 2.20.1