Avoid request if possible
This commit is contained in:
parent
5c5ff72ecd
commit
1dd76e2ec0
1 changed files with 2 additions and 0 deletions
|
|
@ -1999,6 +1999,8 @@ class Societe extends CommonObject
|
|||
{
|
||||
$contact_property='';
|
||||
|
||||
if (empty($rowid)) return '';
|
||||
|
||||
$sql = "SELECT rowid, email, phone_mobile, lastname, firstname";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople";
|
||||
$sql.= " WHERE rowid = '".$rowid."'";
|
||||
|
|
|
|||
Loading…
Reference in a new issue