Fix: missing not empty test
This commit is contained in:
parent
d061025955
commit
c041feec6a
@ -1,4 +1,4 @@
|
|||||||
<?PHP
|
<?php
|
||||||
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
|
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
|
||||||
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
@ -206,6 +206,8 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
|
|||||||
$mysoc->note=empty($conf->global->MAIN_INFO_SOCIETE_NOTE)?'':$conf->global->MAIN_INFO_SOCIETE_NOTE;
|
$mysoc->note=empty($conf->global->MAIN_INFO_SOCIETE_NOTE)?'':$conf->global->MAIN_INFO_SOCIETE_NOTE;
|
||||||
|
|
||||||
// We define pays_id, pays_code and country
|
// We define pays_id, pays_code and country
|
||||||
|
if (! empty($conf->global->MAIN_INFO_SOCIETE_PAYS))
|
||||||
|
{
|
||||||
$tmp=explode(':',$conf->global->MAIN_INFO_SOCIETE_PAYS);
|
$tmp=explode(':',$conf->global->MAIN_INFO_SOCIETE_PAYS);
|
||||||
$country_id=$tmp[0];
|
$country_id=$tmp[0];
|
||||||
if (! empty($tmp[1])) // If $conf->global->MAIN_INFO_SOCIETE_PAYS is "id:code:label"
|
if (! empty($tmp[1])) // If $conf->global->MAIN_INFO_SOCIETE_PAYS is "id:code:label"
|
||||||
@ -220,6 +222,8 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
|
|||||||
$country_code=getCountry($country_id,2,$db); // This need a SQL request, but it's the old feature
|
$country_code=getCountry($country_id,2,$db); // This need a SQL request, but it's the old feature
|
||||||
$country_label=getCountry($country_id,0,$db); // This need a SQL request, but it's the old feature
|
$country_label=getCountry($country_id,0,$db); // This need a SQL request, but it's the old feature
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$mysoc->pays_id=$country_id; // TODO deprecated
|
$mysoc->pays_id=$country_id; // TODO deprecated
|
||||||
$mysoc->country_id=$country_id;
|
$mysoc->country_id=$country_id;
|
||||||
$mysoc->pays_code=$country_code; // TODO deprecated
|
$mysoc->pays_code=$country_code; // TODO deprecated
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user