Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
This commit is contained in:
commit
d79929c13b
@ -2510,6 +2510,8 @@ function pdf_getSizeForImage($realpath)
|
||||
$maxheight = (empty($conf->global->MAIN_DOCUMENTS_WITH_PICTURE_HEIGHT) ? 32 : $conf->global->MAIN_DOCUMENTS_WITH_PICTURE_HEIGHT);
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
||||
$tmp = dol_getImageSize($realpath);
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
if ($tmp['height']) {
|
||||
$width = (int) round($maxheight * $tmp['width'] / $tmp['height']); // I try to use maxheight
|
||||
if ($width > $maxwidth) { // Pb with maxheight, so i use maxwidth
|
||||
|
||||
@ -1738,8 +1738,8 @@ class FichinterLigne extends CommonObjectLine
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter";
|
||||
$sql .= " SET duree = ".((int) $total_duration);
|
||||
$sql .= " , dateo = ".(!empty($obj->dateo) ? "'".$this->db->idate($obj->dateo)."'" : "null");
|
||||
$sql .= " , datee = ".(!empty($obj->datee) ? "'".$this->db->idate($obj->datee)."'" : "null");
|
||||
$sql .= " , dateo = ".(!empty($obj->dateo) ? "'".$this->db->escape($obj->dateo)."'" : "null");
|
||||
$sql .= " , datee = ".(!empty($obj->datee) ? "'".$this->db->escape($obj->datee)."'" : "null");
|
||||
$sql .= " WHERE rowid = ".((int) $this->fk_fichinter);
|
||||
|
||||
dol_syslog("FichinterLigne::update_total", LOG_DEBUG);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user