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~566 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a5533ffc6a7b32a20a624d1c10285e46d27dee65;p=nextcloud-server.git only load mdb2 once as it was before --- 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); } }