CDR - List: Hide broken direction icon if invalid Status.

This commit is contained in:
fusionate 2023-12-27 18:42:32 +00:00
parent 7de2ae0d23
commit 212f91dd6c
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -757,7 +757,10 @@
$image_name .= '_b';
}
$image_name .= ".png";
$content .= "<img src='".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/".escape($image_name)."' width='16' style='border: none; cursor: help;' title='".$text['label-'.$row['direction']].": ".$text['label-'.$status]. ($row['leg']=='b'?'(b)':'') . "'>\n";
if (file_exists($theme_image_path.$image_name)) {
$content .= "<img src='".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/".escape($image_name)."' width='16' style='border: none; cursor: help;' title='".$text['label-'.$row['direction']].": ".$text['label-'.$status]. ($row['leg']=='b'?'(b)':'') . "'>\n";
}
else { $content .= "&nbsp;"; }
}
}
else { $content .= "&nbsp;"; }