From: Robin Appelman Date: Sun, 6 Feb 2011 00:54:07 +0000 (+0100) Subject: only load mdb2 once as it was before X-Git-Tag: v3.0~267^2~558^2~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1df039716391d0708168ee6fd0c2c2ad4bac8059;p=nextcloud-server.git only load mdb2 once as it was before --- 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); } }