]> source.dussan.org Git - nextcloud-server.git/commitdiff
only load mdb2 once as it was before
authorRobin Appelman <icewind1991@gmail.com>
Sun, 6 Feb 2011 00:54:07 +0000 (01:54 +0100)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 17 Mar 2011 19:58:27 +0000 (20:58 +0100)
lib/base.php

index c99de774c2ddf811485129999d84137b311aea17..01a53656789fa4c37d5926a29efa7442ddec465f 100644 (file)
@@ -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' => '<br>',
@@ -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);
                }
        }