I have a site that uses
if is_category(array(x,x,x,x)) {
include stuff;
}
else {
include something else;
}
more or less.
After upgrading to the latest version, I am getting this error for those lines:
Parse error: syntax error, unexpected T_STRING, expecting '(' in /path to index file of this site
where it is referring to the first is_category(array()) line
I cannot see that another ( is required in that line per the documentation for conditionals... am I wrong?
Is there another way to approach this? My if/ifelse/else code is more complex, but I am keeping it simple for this example... I've simplified it in the page and still get that error, so..
The actual code:
<?php
if is_category(array(9,10,14,15,16,25,27,28,33,67)) {
include (TEMPLATEPATH . '/branding-chartus.php');
}
elseif is_category(array(12,29,34,59)) {
include (TEMPLATEPATH . '/branding-ondeck.php');
}
elseif is_category(array(21,22,23,24,30)) {
include (TEMPLATEPATH . '/branding-building.php');
}
elseif (is_category(34)) {
include (TEMPLATEPATH . '/branding-captain.php');
}
elseif (is_category(44)) {
include (TEMPLATEPATH . '/branding-crew.php');
}
else {
include (TEMPLATEPATH . '/branding-default.php');
}
?>