Added a version tag to the info file, which is required for some other module (I forget which) that requires vars version 2.0 or greater.

Added an array_key_exists() check to avoid passing a NULL value to foreach().

Total of 3 lines added, and 2 (blank) lines removed.

CommentFileSizeAuthor
vars-DRUPAL-7--2.patch1.28 KBpillarsdotnet

Comments

Anonymous’s picture

Title: Avoid "invalid argument supplied for foreach()" error, etc. » Avoid "invalid argument supplied for foreach()" error, etc
Anonymous’s picture

Title: Avoid "invalid argument supplied for foreach()" error, etc » Fix the invalid argument error for the control structure, etc

I am changing the issue title, as it creates problems when I paste it in Bash.

Anonymous’s picture

Status: Needs review » Fixed

I have removed the version line from the .info file, as it was not necessary; I tested the module on my site, and it works without that line.

Thank you for your report.

pillarsdotnet’s picture

Okay, opened up a new issue in the dependent module here: http://drupal.org/node/996516

Status: Fixed » Closed (fixed)

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