Update list.php

This commit is contained in:
Laurent Destailleur 2021-08-11 22:19:53 +02:00 committed by GitHub
parent c02e3eed6b
commit 0d07135027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1680,7 +1680,7 @@ if ($resql) {
// Author
if (!empty($arrayfields['u.login']['checked'])) {
print '<td align="center">';
if ($userstatic->id) {
if ($userstatic->id > 0) {
print $userstatic->getLoginUrl(1);
} else {
print '&nbsp;';
@ -1704,7 +1704,6 @@ if ($resql) {
// We print only number
print $nbofsalesrepresentative;
} elseif ($nbofsalesrepresentative > 0) {
$userstatic = new User($db);
$j = 0;
foreach ($listsalesrepresentatives as $val) {
$userstatic->id = $val['id'];