Fix: pgsql compatibility

This commit is contained in:
eldy 2011-09-15 00:37:08 +02:00
parent 109f0dfb3c
commit d662560cca
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,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)

View File

@ -203,7 +203,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)