FIX : php strict warning

This commit is contained in:
florian HENRY 2016-05-17 09:02:22 +02:00
parent f9ded46a99
commit 4e98f57385
3 changed files with 17 additions and 11 deletions

View File

@ -66,7 +66,7 @@ class pdf_proforma extends pdf_einstein
* @param Translate $outputlangs Object lang for output
* @return void
*/
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey="InvoiceProForma")
{
global $conf,$langs,$hookmanager;

View File

@ -224,7 +224,13 @@ class modExpedition extends DolibarrModules
include_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
$shipment=new Commande($this->db);
$idcontacts=join(',',array_keys($shipment->liste_type_contact('external','',0,0,'')));
$contact_arrays=$shipment->liste_type_contact('external','',0,0,'');
if (is_array($contact_arrays) && count($contact_arrays)>0){
$idcontacts=join(',',array_keys($shipment->liste_type_contact('external','',0,0,'')));
} else {
$idcontacts=0;
}
$r++;
$this->export_code[$r]=$this->rights_class.'_'.$r;

View File

@ -64,7 +64,7 @@ class CompanyBankAccount extends Account
* @param User $user User
* @return int <0 if KO, >= 0 if OK
*/
function create($user='')
function create(User $user = null)
{
$now=dol_now();
@ -102,7 +102,7 @@ class CompanyBankAccount extends Account
* @param User $user Object user
* @return int <=0 if KO, >0 if OK
*/
function update($user='')
function update(User $user = null)
{
global $conf;
@ -205,7 +205,7 @@ class CompanyBankAccount extends Account
* @param User $user User deleting
* @return int <0 if KO, >0 if OK
*/
function delete($user='')
function delete(User $user = null)
{
global $conf;