From 474ce69f8939b053db771053e2384d0c92ee97a5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 30 Apr 2011 01:59:28 +0000 Subject: [PATCH] Enhance function getFullAddress --- htdocs/societe/class/societe.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 69a9f9a493b..19fc03ac9d3 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1402,12 +1402,12 @@ class Societe extends CommonObject * @param nobr Do not use br * @return string Full address string */ - function getFullAddress($withcountry=0,$nobr=0) + function getFullAddress($withcountry=0,$sep="\n") { $ret=''; - $ret.=($this->address?$this->address.($nobr?" ":"\n"):''); + $ret.=($this->address?$this->address.$sep:''); $ret.=trim($this->zip.' '.$this->town); - if ($withcountry) $ret.=' '.$this->pays; + if ($withcountry) $ret.=($this->pays?$sep.$this->pays:''); return trim($ret); }