diff options
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r-- | phpBB/includes/db/mssql-odbc.php | 2 | ||||
-rw-r--r-- | phpBB/includes/db/mysql.php | 2 | ||||
-rw-r--r-- | phpBB/includes/db/sqlite.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/db/mssql-odbc.php b/phpBB/includes/db/mssql-odbc.php index a0a6125aa3..bd33bc63cb 100644 --- a/phpBB/includes/db/mssql-odbc.php +++ b/phpBB/includes/db/mssql-odbc.php @@ -558,7 +558,7 @@ class sql_db { while ($row = $this->sql_fetchrow($result)) { - if (!$html_table && count($row)) + if (!$html_table && sizeof($row)) { $html_table = TRUE; $html_hold .= '<table class="bg" width="100%" cellspacing="1" cellpadding="4" border="0" align="center"><tr>'; diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php index 14778a7e66..b1aefc66ca 100644 --- a/phpBB/includes/db/mysql.php +++ b/phpBB/includes/db/mysql.php @@ -454,7 +454,7 @@ class sql_db { while ($row = mysql_fetch_assoc($result)) { - if (!$html_table && count($row)) + if (!$html_table && sizeof($row)) { $html_table = TRUE; $html_hold .= '<table class="bg" width="100%" cellspacing="1" cellpadding="4" border="0" align="center"><tr>'; diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php index abeee3a358..f64e22eab1 100644 --- a/phpBB/includes/db/sqlite.php +++ b/phpBB/includes/db/sqlite.php @@ -148,7 +148,7 @@ class sql_db { while ($row = @sqlite_fetch_array($result, @sqlite_ASSOC)) { - if (!$html_table && count($row)) + if (!$html_table && sizeof($row)) { $html_table = TRUE; $this->sql_report .= "<table width=100% border=1 cellpadding=2 cellspacing=1>\n"; |