Posted by MsKitty on 11/06/06 06:33
Hi Brett -
You have unbalanced parentheses - one extra one on the left = try
using fewer ones so it is easier to see:
if (is_page() || $category->cat_ID === $cat) {
do something
}
Kitty
http://OpenSkyWebDesign.com
brett wrote:
> I'd like to check these two conditions:
>
> if ((is_page() or ($category->cat_ID === $cat)){
> do something
> }
>
> but keep getting an "unexpected {..." error. If I do this, it works
> fine:
>
Navigation:
[Reply to this message]
|