2
0
forked from Wavyzz/dolibarr

Fix remove warning

This commit is contained in:
Laurent Destailleur
2017-05-18 19:19:55 +02:00
parent ef575166c0
commit 88fc7dbc3e
2 changed files with 2 additions and 2 deletions

View File

@@ -848,7 +848,7 @@ class DolibarrModules // Can not be abstract, because we need to insta
$resql=$this->db->query($sql);
if (! $resql) $err++;
$note=json_encode(array('authorid'=>$user->id, 'ip'=>$_SERVER['REMOTE_ADDR']));
$note=json_encode(array('authorid'=>$user->id, 'ip'=>(empty($_SERVER['REMOTE_ADDR'])?'':$_SERVER['REMOTE_ADDR'])));
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name, value, visible, entity, note) VALUES";
$sql.= " (".$this->db->encrypt($this->const_name,1);