fix warning
This commit is contained in:
parent
20c874d441
commit
c4fbf7c422
@ -886,10 +886,19 @@ foreach ($object->fields as $key => $val) {
|
|||||||
print getTitleFieldOfList($arrayfields['t.'.$key]['label'], 0, $_SERVER['PHP_SELF'], 't.'.$key, '', $param, '', $sortfield, $sortorder, ($cssforfield ? $cssforfield.' ' : ''))."\n";
|
print getTitleFieldOfList($arrayfields['t.'.$key]['label'], 0, $_SERVER['PHP_SELF'], 't.'.$key, '', $param, '', $sortfield, $sortorder, ($cssforfield ? $cssforfield.' ' : ''))."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$totalarray = array(
|
||||||
|
'nbfield' => 0,
|
||||||
|
);
|
||||||
// Extra fields
|
// Extra fields
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||||
// Hook fields
|
// Hook fields
|
||||||
$parameters = array('arrayfields'=>$arrayfields, 'param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);
|
$parameters = array(
|
||||||
|
'arrayfields' => $arrayfields,
|
||||||
|
'param' => $param,
|
||||||
|
'sortfield' => $sortfield,
|
||||||
|
'sortorder' => $sortorder,
|
||||||
|
'totalarray' => &$totalarray,
|
||||||
|
);
|
||||||
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListTitle', $parameters, $object); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'maxwidthsearch center ')."\n";
|
print getTitleFieldOfList($selectedfields, 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, 'maxwidthsearch center ')."\n";
|
||||||
@ -910,7 +919,6 @@ if (!empty($extrafields->attributes[$object->table_element]['computed']) && is_a
|
|||||||
// Loop on record
|
// Loop on record
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$totalarray = array();
|
|
||||||
$cacheofoutputfield = array();
|
$cacheofoutputfield = array();
|
||||||
while ($i < min($num, $limit)) {
|
while ($i < min($num, $limit)) {
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
@ -945,15 +953,15 @@ while ($i < min($num, $limit)) {
|
|||||||
}
|
}
|
||||||
if (!empty($arrayfields['t.'.$key]['checked'])) {
|
if (!empty($arrayfields['t.'.$key]['checked'])) {
|
||||||
print '<td';
|
print '<td';
|
||||||
if ($cssforfield || $val['css']) {
|
if (!empty($cssforfield) || !empty($val['css']) {
|
||||||
print ' class="';
|
print ' class="';
|
||||||
}
|
}
|
||||||
print $cssforfield;
|
print empty($cssforfield) ? '' : $cssforfield;
|
||||||
if ($cssforfield && $val['css']) {
|
if (!empty($cssforfield) && !empty($val['css'])) {
|
||||||
print ' ';
|
print ' ';
|
||||||
}
|
}
|
||||||
print $val['css'];
|
print empty($val['css']) ? '' : $val['css'];
|
||||||
if ($cssforfield || $val['css']) {
|
if (!empty($cssforfield) || !empty($val['css'])) {
|
||||||
print '"';
|
print '"';
|
||||||
}
|
}
|
||||||
print '>';
|
print '>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user