Fixed Null value from views
This commit is contained in:
parent
6b3d917633
commit
497050178f
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ if(isset($session->userdata['uid']) && $session->userdata['uid']!=0 && ($sessio
|
|||
$result = $db->query("SHOW TABLE STATUS");
|
||||
while ($row = $db->fetch_array($result))
|
||||
{
|
||||
if(empty($row['Rows'])){
|
||||
$row['Rows'] = 0;
|
||||
}
|
||||
$total_rows += $row['Rows'];
|
||||
$total_data += $row['Data_length'];
|
||||
$total_index += $row['Index_length'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue