From: Holger Lindemann Date: Thu, 3 Feb 2011 11:25:01 +0000 (+0100) Subject: Noch ein wenig veraltet X-Git-Tag: release-2.6.3~93 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=13da4432f5b66c141e6a66cd62cf7d757d267304;p=kivitendo-erp.git Noch ein wenig veraltet --- 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 {