|
From: Paul S. O. <ps...@us...> - 2002-01-01 18:59:55
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv1365/admin
Modified Files:
index.php
Log Message:
Possible fix for bug #496857
Index: index.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/index.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** index.php 2001/12/21 01:28:58 1.30
--- index.php 2002/01/01 18:59:50 1.31
***************
*** 232,237 ****
if( preg_match("/^(3\.23|4\.)/", $version) )
{
$sql = "SHOW TABLE STATUS
! FROM " . $dbname;
if(!$result = $db->sql_query($sql))
{
--- 232,239 ----
if( preg_match("/^(3\.23|4\.)/", $version) )
{
+ $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;
+
$sql = "SHOW TABLE STATUS
! FROM " . $db_name;
if(!$result = $db->sql_query($sql))
{
|