diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-02-06 01:54:07 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-03-17 20:58:27 +0100 |
commit | 1df039716391d0708168ee6fd0c2c2ad4bac8059 (patch) | |
tree | 91f7f3ca8b9eb7642155dbbd395678f83c341c27 /lib/base.php | |
parent | f2627dd7578f33ca5ab392164cb29714ebff1f6b (diff) | |
download | nextcloud-server-1df039716391d0708168ee6fd0c2c2ad4bac8059.tar.gz nextcloud-server-1df039716391d0708168ee6fd0c2c2ad4bac8059.zip |
only load mdb2 once as it was before
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
1 files 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' => '<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); } } |