aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_database.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-09 22:47:50 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-09 22:47:50 +0000
commitbf2a0e7eb2991158bee2175413148a068af4649f (patch)
treec6f99ce1097983f1ca57bdff8319ce7cef03b680 /phpBB/includes/acp/acp_database.php
parent90457c7f8cda02a7f9466b48ce2863fa3457ee41 (diff)
downloadforums-bf2a0e7eb2991158bee2175413148a068af4649f.tar
forums-bf2a0e7eb2991158bee2175413148a068af4649f.tar.gz
forums-bf2a0e7eb2991158bee2175413148a068af4649f.tar.bz2
forums-bf2a0e7eb2991158bee2175413148a068af4649f.tar.xz
forums-bf2a0e7eb2991158bee2175413148a068af4649f.zip
#6130
git-svn-id: file:///svn/phpbb/trunk@6733 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_database.php')
-rw-r--r--phpBB/includes/acp/acp_database.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index 18ee6c81a7..f1449853ad 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -1028,7 +1028,7 @@ class acp_database
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
- if (strpos($row['name'], $table_prefix) === 0)
+ if (strlen($table_prefix) == 0 || strpos($row['name'], $table_prefix) === 0)
{
$tables[] = $row['name'];
}
@@ -1056,7 +1056,7 @@ class acp_database
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
- if (strpos($row['relname'], $table_prefix) === 0)
+ if (strlen($table_prefix) == 0 || strpos($row['relname'], $table_prefix) === 0)
{
$tables[] = $row['relname'];
}
@@ -1073,7 +1073,7 @@ class acp_database
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
- if (strpos($row['TABLE_NAME'], $table_prefix) === 0)
+ if (strlen($table_prefix) == 0 || strpos($row['TABLE_NAME'], $table_prefix) === 0)
{
$tables[] = $row['TABLE_NAME'];
}
@@ -1089,7 +1089,7 @@ class acp_database
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
- if (stripos($row['table_name'], $table_prefix) === 0)
+ if (strlen($table_prefix) == 0 || stripos($row['table_name'], $table_prefix) === 0)
{
$tables[] = $row['table_name'];
}
@@ -1103,7 +1103,7 @@ class acp_database
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
- if (stripos($row['table_name'], $table_prefix) === 0)
+ if (strlen($table_prefix) == 0 || stripos($row['table_name'], $table_prefix) === 0)
{
$tables[] = $row['table_name'];
}