mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
Fixed problem with SHOW TABLE STATUS (bad MySQL config) #501745
git-svn-id: file:///svn/phpbb/trunk@1840 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -235,10 +235,8 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
|
||||
|
||||
$sql = "SHOW TABLE STATUS
|
||||
FROM " . $db_name;
|
||||
if(!$result = $db->sql_query($sql))
|
||||
if($result = $db->sql_query($sql))
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Couldn't obtain table information.", "", __LINE__, __FILE__, $sql);
|
||||
}
|
||||
$tabledata_ary = $db->sql_fetchrowset($result);
|
||||
|
||||
$dbsize = 0;
|
||||
@@ -272,6 +270,7 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' )
|
||||
{
|
||||
$dbsize = sprintf("%.2f Bytes", $dbsize);
|
||||
}
|
||||
} // Else we couldn't get the table status.
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user