From c463d6c936261948320c4c0fc33595d4545d02c2 Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 3 Mar 2008 16:44:01 +0000 Subject: Fixed get_tables so install works correctly git-svn-id: https://code.elgg.org/elgg/trunk@63 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/database.php b/engine/lib/database.php index 431e535d0..06b6770a3 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -261,8 +261,7 @@ function get_db_tables() { global $CONFIG; $result = get_data("show tables"); - $result = (array) $result; - + $tables = array(); if (is_array($result) && !empty($result)) { @@ -273,7 +272,9 @@ $tables[] = $element; } } - } + } + else + return false; return $tables; } -- cgit v1.2.3