I am getting the following error messages after having enabled the installed on a standard vanilla drupal 7.31 installation

Notice: Undefined variable: data in ninesixtyrobots_preprocess_page() (line 80 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).
Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 80 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).
Warning: array_rand() expects parameter 1 to be array, null given in ninesixtyrobots_preprocess_page() (line 80 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).
Notice: Undefined variable: data in ninesixtyrobots_preprocess_page() (line 80 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).
Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 80 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).
Notice: Trying to get property of non-object in ninesixtyrobots_preprocess_page() (line 82 of /home/robots/public_html/sites/all/themes/ninesixtyrobots/template.php).

CommentFileSizeAuthor
#1 PHP-notice-cleanup-2338013-1.patch666 bytesblakehall

Comments

blakehall’s picture

Status: Active » Needs review
StatusFileSize
new666 bytes

Here's a small patch which cleans up these php notices.

  • add1sun committed 0da499e on 7.x-1.x
    Issue #2338013 by blakehall: Fix undefined variable.
    
add1sun’s picture

Thanks! Committed and added to new release 7.x-1.3.

add1sun’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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