From 1df039716391d0708168ee6fd0c2c2ad4bac8059 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 --- lib/base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base.php b/lib/base.php index c99de774c2d..01a53656789 100644 --- a/lib/base.php +++ b/lib/base.php @@ -315,8 +315,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' => '
', @@ -362,8 +362,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