From e502134fa3c7c3eb87d02daaf4c20209a22af7b3 Mon Sep 17 00:00:00 2001 From: Bakual Date: Fri, 2 Sep 2011 18:26:43 +0300 Subject: [PATCH] Added a check for the method "getHeadData" to prevent issue #327 when JDocumentRaw is loaded. --- libraries/joomla/cache/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/joomla/cache/cache.php b/libraries/joomla/cache/cache.php index 1d04d17ebf..b37e9b9189 100644 --- a/libraries/joomla/cache/cache.php +++ b/libraries/joomla/cache/cache.php @@ -564,7 +564,7 @@ public static function setWorkarounds($data, $options = array()) $cached['body'] = $data; // Document head data - if ($loptions['nohead'] != 1) + if ($loptions['nohead'] != 1 && method_exists($document, 'getHeadData')) { if ($loptions['modulemode'] == 1)