aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 16:44:01 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-03 16:44:01 +0000
commitc463d6c936261948320c4c0fc33595d4545d02c2 (patch)
treec5ae102826c6c7d08d6467e9a276f0e31b653894 /engine/lib
parentb615415b26cb1560439b779eee1a6a9428929bed (diff)
downloadelgg-c463d6c936261948320c4c0fc33595d4545d02c2.tar.gz
elgg-c463d6c936261948320c4c0fc33595d4545d02c2.tar.bz2
Fixed get_tables so install works correctly
git-svn-id: https://code.elgg.org/elgg/trunk@63 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php7
1 files changed, 4 insertions, 3 deletions
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;
}