summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.php')
-rwxr-xr-xlib/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index f5c328afe7c..f1e4f965efd 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -62,7 +62,9 @@ class OC_App{
ob_end_clean();
if (!defined('DEBUG') || !DEBUG) {
- if (is_null($types)) {
+ if (is_null($types)
+ && empty(OC_Util::$core_scripts)
+ && empty(OC_Util::$core_styles)) {
OC_Util::$core_scripts = OC_Util::$scripts;
OC_Util::$scripts = array();
OC_Util::$core_styles = OC_Util::$styles;