Fix var_dump

This commit is contained in:
Laurent Destailleur 2021-09-03 11:00:14 +02:00
parent 77e9f15360
commit dc81f1de68
2 changed files with 3 additions and 5 deletions

View File

@ -2126,7 +2126,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$entity = $conf->entity; // Reset the current entity
$newvalue = $value;
var_dump($newvalue);
// Serialize array parameters
if (is_array($value)) {
// Can defined other parameters
@ -2145,8 +2145,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$newvalue = json_encode($value);
}
}
var_dump($newvalue);
var_dump($this->db->escape($newvalue));
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
$sql .= "name";
@ -2164,7 +2162,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$sql .= ", '0'";
$sql .= ", ".((int) $entity);
$sql .= ")";
print $sql;
dol_syslog(get_class($this)."::insert_module_parts for key=".$this->const_name."_".strtoupper($key), LOG_DEBUG);
$resql = $this->db->query($sql, 1);

View File

@ -1087,7 +1087,7 @@ function migrate_links_transfert($db, $langs, $conf)
$sql .= $obj->barowid.",".$obj->bbrowid.", '/compta/bank/line.php?rowid=', '(banktransfert)', 'banktransfert'";
$sql .= ")";
print $sql.'<br>';
//print $sql.'<br>';
dolibarr_install_syslog("migrate_links_transfert");
if (!$db->query($sql)) {