mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Fix travis errors
This commit is contained in:
@@ -281,7 +281,7 @@ function GETPOST($paramname, $check='', $method=0, $filter=NULL, $options=NULL)
|
|||||||
$relativepathstring = preg_replace('/^\//', '', $relativepathstring);
|
$relativepathstring = preg_replace('/^\//', '', $relativepathstring);
|
||||||
|
|
||||||
// Retrieve values if restore_lastsearch_values is set and there is saved values
|
// Retrieve values if restore_lastsearch_values is set and there is saved values
|
||||||
if ($_GET['restore_lastsearch_values'] && ! empty($_SESSION['lastsearch_values_'.$relativepathstring])) // Keep $_GET here
|
if (! empty($_GET['restore_lastsearch_values']) && ! empty($_SESSION['lastsearch_values_'.$relativepathstring])) // Keep $_GET here
|
||||||
{
|
{
|
||||||
$tmp=json_decode($_SESSION['lastsearch_values_'.$relativepathstring], true);
|
$tmp=json_decode($_SESSION['lastsearch_values_'.$relativepathstring], true);
|
||||||
if (is_array($tmp))
|
if (is_array($tmp))
|
||||||
|
|||||||
@@ -848,7 +848,7 @@ class DolibarrModules // Can not be abstract, because we need to insta
|
|||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if (! $resql) $err++;
|
if (! $resql) $err++;
|
||||||
|
|
||||||
$note=json_encode(array('authorid'=>$user->id, 'ip'=>(empty($_SERVER['REMOTE_ADDR'])?'':$_SERVER['REMOTE_ADDR'])));
|
$note=json_encode(array('authorid'=>(is_object($user)?$user->id:0), 'ip'=>(empty($_SERVER['REMOTE_ADDR'])?'':$_SERVER['REMOTE_ADDR'])));
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name, value, visible, entity, note) VALUES";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name, value, visible, entity, note) VALUES";
|
||||||
$sql.= " (".$this->db->encrypt($this->const_name,1);
|
$sql.= " (".$this->db->encrypt($this->const_name,1);
|
||||||
|
|||||||
Reference in New Issue
Block a user