forked from Wavyzz/dolibarr
FIX scrutinizer feedback
This commit is contained in:
@@ -8017,6 +8017,8 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
$return = '';
|
||||||
|
|
||||||
// image's filename are still in French
|
// image's filename are still in French
|
||||||
$statusImg=array(
|
$statusImg=array(
|
||||||
'status0' => 'statut0'
|
'status0' => 'statut0'
|
||||||
|
|||||||
@@ -1374,6 +1374,7 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||||||
if (! empty($object->lines[$i]->date_start) || ! empty($object->lines[$i]->date_end))
|
if (! empty($object->lines[$i]->date_start) || ! empty($object->lines[$i]->date_end))
|
||||||
{
|
{
|
||||||
$format='day';
|
$format='day';
|
||||||
|
$period = '';
|
||||||
// Show duration if exists
|
// Show duration if exists
|
||||||
if ($object->lines[$i]->date_start && $object->lines[$i]->date_end)
|
if ($object->lines[$i]->date_start && $object->lines[$i]->date_end)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1810,7 +1810,6 @@ class pdf_cornas extends ModelePDFSuppliersOrders
|
|||||||
global $hookmanager;
|
global $hookmanager;
|
||||||
|
|
||||||
$parameters=array(
|
$parameters=array(
|
||||||
'object' => $object,
|
|
||||||
'curY' =>& $curY,
|
'curY' =>& $curY,
|
||||||
'columnText' => $columnText,
|
'columnText' => $columnText,
|
||||||
'colKey' => $colKey
|
'colKey' => $colKey
|
||||||
|
|||||||
@@ -1740,8 +1740,8 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$nophoto='/public/theme/common/user_anonymous.png';
|
$nophoto='/public/theme/common/user_anonymous.png';
|
||||||
if ($object->gender == 'man') $nophoto='/public/theme/common/user_man.png';
|
if ($user->gender == 'man') $nophoto='/public/theme/common/user_man.png';
|
||||||
if ($object->gender == 'woman') $nophoto='/public/theme/common/user_woman.png';
|
if ($user->gender == 'woman') $nophoto='/public/theme/common/user_woman.png';
|
||||||
|
|
||||||
$userImage = '<img class="photo photouserphoto userphoto" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
$userImage = '<img class="photo photouserphoto userphoto" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
||||||
$userDropDownImage = '<img class="photo dropdown-user-image" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
$userDropDownImage = '<img class="photo dropdown-user-image" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
||||||
|
|||||||
@@ -4155,6 +4155,8 @@ class Product extends CommonObject
|
|||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
$labelstatut = $labelstatutShort = '';
|
||||||
|
|
||||||
$langs->load('products');
|
$langs->load('products');
|
||||||
if (! empty($conf->productbatch->enabled)) { $langs->load("productbatch");
|
if (! empty($conf->productbatch->enabled)) { $langs->load("productbatch");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user