Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
parent
0f90cee597
commit
f6e3f58fcb
@ -3918,7 +3918,7 @@ class Commande extends CommonOrder
|
|||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'einstein';
|
$modele = 'einstein';
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->COMMANDE_ADDON_PDF)) {
|
} elseif (!empty($conf->global->COMMANDE_ADDON_PDF)) {
|
||||||
$modele = $conf->global->COMMANDE_ADDON_PDF;
|
$modele = $conf->global->COMMANDE_ADDON_PDF;
|
||||||
|
|||||||
@ -262,7 +262,7 @@ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sort
|
|||||||
$topicmail = "Information";
|
$topicmail = "Information";
|
||||||
//$modelmail="subscription";
|
//$modelmail="subscription";
|
||||||
$objecttmp = new Account($db);
|
$objecttmp = new Account($db);
|
||||||
$trackid='bank'.$object->id;
|
$trackid = 'bank'.$object->id;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';
|
||||||
|
|
||||||
if ($sall)
|
if ($sall)
|
||||||
|
|||||||
@ -627,7 +627,7 @@ class Facture extends CommonInvoice
|
|||||||
$sql .= ", ".($this->remise_absolue > 0 ? $this->remise_absolue : 'NULL');
|
$sql .= ", ".($this->remise_absolue > 0 ? $this->remise_absolue : 'NULL');
|
||||||
$sql .= ", ".($this->remise_percent > 0 ? $this->remise_percent : 'NULL');
|
$sql .= ", ".($this->remise_percent > 0 ? $this->remise_percent : 'NULL');
|
||||||
$sql .= ", '".$this->db->idate($this->date)."'";
|
$sql .= ", '".$this->db->idate($this->date)."'";
|
||||||
$sql .= ", ".(empty($this->date_pointoftax) ? "null": "'".$this->db->idate($this->date_pointoftax)."'");
|
$sql .= ", ".(empty($this->date_pointoftax) ? "null" : "'".$this->db->idate($this->date_pointoftax)."'");
|
||||||
$sql .= ", ".($this->note_private ? "'".$this->db->escape($this->note_private)."'" : "null");
|
$sql .= ", ".($this->note_private ? "'".$this->db->escape($this->note_private)."'" : "null");
|
||||||
$sql .= ", ".($this->note_public ? "'".$this->db->escape($this->note_public)."'" : "null");
|
$sql .= ", ".($this->note_public ? "'".$this->db->escape($this->note_public)."'" : "null");
|
||||||
$sql .= ", ".($this->ref_client ? "'".$this->db->escape($this->ref_client)."'" : "null");
|
$sql .= ", ".($this->ref_client ? "'".$this->db->escape($this->ref_client)."'" : "null");
|
||||||
@ -4338,7 +4338,7 @@ class Facture extends CommonInvoice
|
|||||||
$modele = 'crabe';
|
$modele = 'crabe';
|
||||||
$thisTypeConfName = 'FACTURE_ADDON_PDF_'.$this->type;
|
$thisTypeConfName = 'FACTURE_ADDON_PDF_'.$this->type;
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->$thisTypeConfName)) {
|
} elseif (!empty($conf->global->$thisTypeConfName)) {
|
||||||
$modele = $conf->global->$thisTypeConfName;
|
$modele = $conf->global->$thisTypeConfName;
|
||||||
|
|||||||
@ -2419,7 +2419,7 @@ class Contrat extends CommonObject
|
|||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'strato';
|
$modele = 'strato';
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->CONTRACT_ADDON_PDF)) {
|
} elseif (!empty($conf->global->CONTRACT_ADDON_PDF)) {
|
||||||
$modele = $conf->global->CONTRACT_ADDON_PDF;
|
$modele = $conf->global->CONTRACT_ADDON_PDF;
|
||||||
|
|||||||
@ -628,7 +628,7 @@ class modProduct extends DolibarrModules
|
|||||||
$this->import_label[$r] = "SuppliersPricesOfProductsOrServices"; // Translation key
|
$this->import_label[$r] = "SuppliersPricesOfProductsOrServices"; // Translation key
|
||||||
$this->import_icon[$r] = $this->picto;
|
$this->import_icon[$r] = $this->picto;
|
||||||
$this->import_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into import_icon
|
$this->import_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into import_icon
|
||||||
$this->import_tables_array[$r] = array('sp'=>MAIN_DB_PREFIX.'product_fournisseur_price','extra'=>MAIN_DB_PREFIX.'product_fournisseur_price_extrafields');
|
$this->import_tables_array[$r] = array('sp'=>MAIN_DB_PREFIX.'product_fournisseur_price', 'extra'=>MAIN_DB_PREFIX.'product_fournisseur_price_extrafields');
|
||||||
$this->import_tables_creator_array[$r] = array('sp'=>'fk_user');
|
$this->import_tables_creator_array[$r] = array('sp'=>'fk_user');
|
||||||
$this->import_fields_array[$r] = array(//field order as per structure of table llx_product_fournisseur_price, without optional fields
|
$this->import_fields_array[$r] = array(//field order as per structure of table llx_product_fournisseur_price, without optional fields
|
||||||
'sp.fk_product'=>"ProductOrService*",
|
'sp.fk_product'=>"ProductOrService*",
|
||||||
|
|||||||
@ -2495,7 +2495,7 @@ class Expedition extends CommonObject
|
|||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'rouget';
|
$modele = 'rouget';
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->EXPEDITION_ADDON_PDF)) {
|
} elseif (!empty($conf->global->EXPEDITION_ADDON_PDF)) {
|
||||||
$modele = $conf->global->EXPEDITION_ADDON_PDF;
|
$modele = $conf->global->EXPEDITION_ADDON_PDF;
|
||||||
|
|||||||
@ -2207,7 +2207,7 @@ class ExpenseReport extends CommonObject
|
|||||||
$langs->load("trips");
|
$langs->load("trips");
|
||||||
|
|
||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->EXPENSEREPORT_ADDON_PDF)) {
|
} elseif (!empty($conf->global->EXPENSEREPORT_ADDON_PDF)) {
|
||||||
$modele = $conf->global->EXPENSEREPORT_ADDON_PDF;
|
$modele = $conf->global->EXPENSEREPORT_ADDON_PDF;
|
||||||
|
|||||||
@ -689,7 +689,7 @@ class Fichinter extends CommonObject
|
|||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'soleil';
|
$modele = 'soleil';
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->FICHEINTER_ADDON_PDF)) {
|
} elseif (!empty($conf->global->FICHEINTER_ADDON_PDF)) {
|
||||||
$modele = $conf->global->FICHEINTER_ADDON_PDF;
|
$modele = $conf->global->FICHEINTER_ADDON_PDF;
|
||||||
|
|||||||
@ -1900,7 +1900,7 @@ class Task extends CommonObject
|
|||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'nodefault';
|
$modele = 'nodefault';
|
||||||
|
|
||||||
if (! empty($this->modelpdf)) {
|
if (!empty($this->modelpdf)) {
|
||||||
$modele = $this->modelpdf;
|
$modele = $this->modelpdf;
|
||||||
} elseif (!empty($conf->global->PROJECT_TASK_ADDON_PDF)) {
|
} elseif (!empty($conf->global->PROJECT_TASK_ADDON_PDF)) {
|
||||||
$modele = $conf->global->PROJECT_TASK_ADDON_PDF;
|
$modele = $conf->global->PROJECT_TASK_ADDON_PDF;
|
||||||
|
|||||||
@ -949,15 +949,15 @@ class User extends CommonObject
|
|||||||
$perms = $obj->perms;
|
$perms = $obj->perms;
|
||||||
$subperms = $obj->subperms;
|
$subperms = $obj->subperms;
|
||||||
|
|
||||||
if (! empty($perms)) {
|
if (!empty($perms)) {
|
||||||
if (!isset($this->rights) || !is_object($this->rights)) {
|
if (!isset($this->rights) || !is_object($this->rights)) {
|
||||||
$this->rights = new stdClass(); // For avoid error
|
$this->rights = new stdClass(); // For avoid error
|
||||||
}
|
}
|
||||||
if (! empty($module)) {
|
if (!empty($module)) {
|
||||||
if (!isset($this->rights->$module) || !is_object($this->rights->$module)) {
|
if (!isset($this->rights->$module) || !is_object($this->rights->$module)) {
|
||||||
$this->rights->$module = new stdClass();
|
$this->rights->$module = new stdClass();
|
||||||
}
|
}
|
||||||
if (! empty($subperms)) {
|
if (!empty($subperms)) {
|
||||||
if (!isset($this->rights->$module->$perms) || !is_object($this->rights->$module->$perms)) {
|
if (!isset($this->rights->$module->$perms) || !is_object($this->rights->$module->$perms)) {
|
||||||
$this->rights->$module->$perms = new stdClass();
|
$this->rights->$module->$perms = new stdClass();
|
||||||
}
|
}
|
||||||
@ -1015,15 +1015,15 @@ class User extends CommonObject
|
|||||||
$perms = $obj->perms;
|
$perms = $obj->perms;
|
||||||
$subperms = $obj->subperms;
|
$subperms = $obj->subperms;
|
||||||
|
|
||||||
if (! empty($perms)) {
|
if (!empty($perms)) {
|
||||||
if (!isset($this->rights) || !is_object($this->rights)) {
|
if (!isset($this->rights) || !is_object($this->rights)) {
|
||||||
$this->rights = new stdClass(); // For avoid error
|
$this->rights = new stdClass(); // For avoid error
|
||||||
}
|
}
|
||||||
if (! empty($module)) {
|
if (!empty($module)) {
|
||||||
if (!isset($this->rights->$module) || !is_object($this->rights->$module)) {
|
if (!isset($this->rights->$module) || !is_object($this->rights->$module)) {
|
||||||
$this->rights->$module = new stdClass();
|
$this->rights->$module = new stdClass();
|
||||||
}
|
}
|
||||||
if (! empty($subperms)) {
|
if (!empty($subperms)) {
|
||||||
if (!isset($this->rights->$module->$perms) || !is_object($this->rights->$module->$perms)) {
|
if (!isset($this->rights->$module->$perms) || !is_object($this->rights->$module->$perms)) {
|
||||||
$this->rights->$module->$perms = new stdClass();
|
$this->rights->$module->$perms = new stdClass();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user