From a5533ffc6a7b32a20a624d1c10285e46d27dee65 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 6 Feb 2011 01:54:07 +0100 Subject: [PATCH] only load mdb2 once as it was before --- inc/lib_base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/lib_base.php b/inc/lib_base.php index 68194685655..731d58821d0 100644 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -366,8 +366,8 @@ class OC_DB { global $CONFIG_DBTYPE; global $DOCUMENTROOT; global $SERVERROOT; - @oc_require_once('MDB2.php'); if(!self::$DBConnection){ + @oc_require_once('MDB2.php'); $options = array( 'portability' => MDB2_PORTABILITY_ALL, 'log_line_break' => '
', @@ -413,8 +413,8 @@ class OC_DB { public static function connectScheme(){ self::connect(); - @oc_require_once('MDB2/Schema.php'); if(!self::$schema){ + @oc_require_once('MDB2/Schema.php'); self::$schema=&MDB2_Schema::factory(self::$DBConnection); } } -- 2.39.5