Fixed Null value from views

This commit is contained in:
genuineparts 2025-06-24 10:32:12 +02:00
parent 6b3d917633
commit 497050178f

View file

@ -80,6 +80,9 @@ if(isset($session->userdata['uid']) && $session->userdata['uid']!=0 && ($sessio
$result = $db->query("SHOW TABLE STATUS"); $result = $db->query("SHOW TABLE STATUS");
while ($row = $db->fetch_array($result)) while ($row = $db->fetch_array($result))
{ {
if(empty($row['Rows'])){
$row['Rows'] = 0;
}
$total_rows += $row['Rows']; $total_rows += $row['Rows'];
$total_data += $row['Data_length']; $total_data += $row['Data_length'];
$total_index += $row['Index_length']; $total_index += $row['Index_length'];