Skip to content

Commit e190188

Browse files
committed
Fix minore
1 parent 3408a1a commit e190188

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎ajax_dataload.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134
// Formattazione HTML
135135
if (empty($total['html_format'][$pos]) && !empty($value)) {
136-
$value = strip_tags($value);
136+
$value = strip_tags($value?:'');
137137
}
138138

139139
// Formattazione automatica

‎log.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<td>'.$log['username'].'</td>
8181
<td class="tip" title="'.$created_at->format('d/m/Y H:i:s').'">'.$created_at->diffForHumans().'</td>
8282
<td>'.$log['ip'].'</td>
83-
<td class="user-agent tip" title="'.strip_tags($log['user_agent']).'">'.$log['user_agent'].'</td>
83+
<td class="user-agent tip" title="'.strip_tags($log['user_agent']?:'').'">'.$log['user_agent'].'</td>
8484
<td><span class="badge badge-'.$type.'">'.$stato.'</span></td>
8585
</tr>';
8686
}

0 commit comments

Comments
 (0)