[support] Testing for arg() OR is_front

Hendry hendry.htc at gmail.com
Mon Jul 12 02:14:48 UTC 2010


I noticed that you have wrong syntax on this line:
       <?php if (arg(1) != "27") || (!$is_front): ?>
It should be
       <?php if (arg(1) != "27" || !$is_front): ?>

# Hendry

On Mon, Jul 12, 2010 at 9:20 AM, Chris McCreery
<chris.mccreery at gmail.com> wrote:
> Right now I have this:
> <?php if (arg(1) != '39'): ?>
> <div> Content </div>
> <?php endif; ?>
> This works just fine but when i try to add in a second arg(1) and OR
> statement it doesn't work. Any ideas?


More information about the support mailing list