forked from Wavyzz/dolibarr
Fix phpcs
This commit is contained in:
@@ -10784,7 +10784,7 @@ function getDictionaryValue($tablename, $field, $id, $checkentity = false, $rowi
|
|||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
while ($obj = $db->fetch_object($resql)) {
|
while ($obj = $db->fetch_object($resql)) {
|
||||||
$dictvalues[$obj->{$rowidfield}] = $obj; // $obj is stdClass
|
$dictvalues[$obj->$rowidfield] = $obj; // $obj is stdClass
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
|
|||||||
@@ -1523,12 +1523,12 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
|
|
||||||
// Output Rect
|
// Output Rect
|
||||||
$this->printRect($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect takes a length in 3rd parameter and 4th parameter
|
$this->printRect($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect takes a length in 3rd parameter and 4th parameter
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_PDF_TITLE_TEXT_COLOR)) {
|
if (!empty($conf->global->MAIN_PDF_TITLE_TEXT_COLOR)) {
|
||||||
$arrayColorTextTitle = explode(',', $conf->global->MAIN_PDF_TITLE_TEXT_COLOR);
|
$arrayColorTextTitle = explode(',', $conf->global->MAIN_PDF_TITLE_TEXT_COLOR);
|
||||||
$pdf->SetTextColor($arrayColorTextTitle[0], $arrayColorTextTitle[1], $arrayColorTextTitle[2]);
|
$pdf->SetTextColor($arrayColorTextTitle[0], $arrayColorTextTitle[1], $arrayColorTextTitle[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->pdfTabTitles($pdf, $tab_top, $tab_height, $outputlangs, $hidetop);
|
$this->pdfTabTitles($pdf, $tab_top, $tab_height, $outputlangs, $hidetop);
|
||||||
|
|
||||||
if (!empty($conf->global->MAIN_PDF_TITLE_TEXT_COLOR)) {
|
if (!empty($conf->global->MAIN_PDF_TITLE_TEXT_COLOR)) {
|
||||||
|
|||||||
@@ -3390,7 +3390,7 @@ class EmailCollector extends CommonObject
|
|||||||
$attachments[$filename] = $data; // this is a problem if two files have same name
|
$attachments[$filename] = $data; // this is a problem if two files have same name
|
||||||
|
|
||||||
if (strlen($destdir)) {
|
if (strlen($destdir)) {
|
||||||
if (substr($destdir,-1) != '/') $destdir .= '/';
|
if (substr($destdir, -1) != '/') $destdir .= '/';
|
||||||
|
|
||||||
// Get file name (with extension)
|
// Get file name (with extension)
|
||||||
$file_name_complete = $params['filename'];
|
$file_name_complete = $params['filename'];
|
||||||
|
|||||||
Reference in New Issue
Block a user