Hi timpennington,
I have updated the code in the /home3/tpennington/public_html/plugins/system/jatabs/jatabs.php file:
Replace this code:
if($document->_script) {
foreach ($document->_script as $strDeclartion) {
$headtag = '<script type="text/javascript">'.$strDeclartion.'</script>';
$this->_body = str_replace('</head>', "\t" . $headtag . "\n</head>", $this->_body);
}
}
With the following code:
if (is_array($document->_script) && !empty($document->_script)) {
foreach ($document->_script as $strDeclaration) {
if (is_string($strDeclaration)) {
$headtag = '<script type="text/javascript">' . $strDeclaration . '</script>';
$this->_body = str_replace('</head>', "\t" . $headtag . "\n</head>", $this->_body);
} else {
// Log an error message for non-string values
error_log('Non-string value encountered in $document->_script: ' . print_r($strDeclaration, true));
}
}
}