aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 74d6d2d77..d908bf725 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -305,6 +305,12 @@
*/
function get_db_tables() {
global $CONFIG;
+ static $tables, $count;
+
+ if (isset($tables)) {
+ return $tables;
+ }
+
$result = get_data("show tables");
$tables = array();