Fix warning

This commit is contained in:
Laurent Destailleur
2023-02-24 15:14:18 +01:00
parent 093099ea44
commit fae051deb4

View File

@@ -3411,8 +3411,8 @@ if (!function_exists("llxFooter")) {
} }
// Wrapper to add log when clicking on download or preview // Wrapper to add log when clicking on download or preview
if (isModEnabled('blockedlog') && is_object($object) && !empty($object->id) && $object->id > 0 && $object->statut > 0) { if (isModEnabled('blockedlog') && is_object($object) && !empty($object->id) && $object->id > 0) {
if (in_array($object->element, array('facture'))) { // Restrict for the moment to element 'facture' if (in_array($object->element, array('facture')) && $object->statut > 0) { // Restrict for the moment to element 'facture'
print "\n<!-- JS CODE TO ENABLE log when making a download or a preview of a document -->\n"; print "\n<!-- JS CODE TO ENABLE log when making a download or a preview of a document -->\n";
?> ?>
<script> <script>