Update contact.class.php

This commit is contained in:
Laurent Destailleur 2018-01-15 11:30:11 +01:00 committed by GitHub
parent 20ad3b0e80
commit b8688a46d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ class Contact extends CommonObject
if (empty($this->priv)) $this->priv = 0;
if (empty($this->statut)) $this->statut = 0; // This is to convert '' into '0' to avoid bad sql request
$entity = (isset($this->entity) && is_numeric($this->entity)?$this->entity:$conf->entity);
$entity = ((isset($this->entity) && is_numeric($this->entity))?$this->entity:$conf->entity);
$sql = "INSERT INTO ".MAIN_DB_PREFIX."socpeople (";
$sql.= " datec";