]> 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>
Sun, 6 Feb 2011 00:54:07 +0000 (01:54 +0100)
inc/lib_base.php

index 68194685655a67969902eb4054670fb540939c9b..731d58821d0f2696a47b2d9119ca39d779065768 100644 (file)
@@ -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' => '<br>',
@@ -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);
                }
        }