Not setting a calculation results in "warning: Invalid argument supplied for foreach() [...] views_calc/theme.inc on line 178."
jim0203 - October 30, 2009 - 21:04
| Project: | Views Calc |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Clean install of Drupal 6.14, Views Calc 1.3, Views 2.6.
Set up a simple View: a list of nids, for example. Change the style to Views Calc Table, but then don't display any calculations: just hit update.
You get two error messages, each saying:
warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/drupal6/sites/all/modules/views_calc/theme.inc on line 178.
Patch attached; it just checks that the array in foreach() on line 178 is actually an array.
| Attachment | Size |
|---|---|
| line178.patch | 3.49 KB |
