If you go to the homepage path 'node' you get the following PHP notice because $arg[1] does not exist while $arg[0] is node:

Notice: Undefined offset: 1 in zen_preprocess_html() (line 128 of .../sites/all/themes/zen/template.php).

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new519 bytes
johnalbin’s picture

StatusFileSize
new755 bytes

What do you think about this patch?

dave reid’s picture

I don't like it as much.

johnalbin’s picture

Title: PHP notice: Undefined index 1 in zen_preprocess_html() on line 128 » PHP notice when /node is not homepage
Status: Needs review » Fixed

I committed something closer to your patch than to my original one. http://drupalcode.org/project/zen.git/commitdiff/a282fbb

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.