Adding a check for "getHeadData" in JCache #332

Merged
merged 1 commit into from Sep 4, 2011
@@ -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)