Fix: pgsql compatibility
This commit is contained in:
parent
0b624b859a
commit
e6bfb81bda
2 changed files with 2 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode
|
|||
{
|
||||
$sql = "SELECT code_client FROM ".MAIN_DB_PREFIX."societe";
|
||||
$sql.= " WHERE code_client = '".$code."'";
|
||||
$sql.= " AND rowid != '".$soc->id."'";
|
||||
if ($soc->id > 0) $sql.= " AND rowid != ".$soc->id;
|
||||
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||
{
|
||||
$sql = "SELECT code_client FROM ".MAIN_DB_PREFIX."societe";
|
||||
$sql.= " WHERE code_client = '".$code."'";
|
||||
$sql.= " AND rowid != '".$soc->id."'";
|
||||
if ($soc->id > 0) $sql.= " AND rowid != ".$soc->id;
|
||||
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
|
|
|
|||
Loading…
Reference in a new issue