diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php
index a1b75a34213ab4a6b8718f10e4f5ace219d74b52..fe7638f399d607ab668c81a981a881436eb4390c 100644
--- a/lib/private/templatelayout.php
+++ b/lib/private/templatelayout.php
@@ -156,6 +156,7 @@ class TemplateLayout extends \OC_Template {
 			// Add the css files
 			$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
 			$this->assign('cssfiles', array());
+			$this->assign('printcssfiles', []);
 			foreach($cssFiles as $info) {
 				$web = $info[1];
 				$file = $info[2];