Closed (fixed)
Project:
Conditional Stylesheets
Version:
7.x-2.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2013 at 17:47 UTC
Updated:
4 Sep 2013 at 23:07 UTC
I am getting the following error:
Warning: Invalid argument supplied for foreach() in conditional_styles_preprocess_html() (line 14 of /sites/all/modules/conditional_styles/conditional_styles.module).
The line is:
foreach ($themes[$key]->info['stylesheets-conditional'][$condition][$media] as $stylesheet) {
I believe it should be:
foreach (array_keys($themes[$key]->info['stylesheets-conditional'][$condition][$media]) as $stylesheet) {
I am brand new to Drupal so that may not be correct, although it does seem to make the error disappear.
Comments
Comment #1
zenpunk commentedNevermind. I had left out some square brackets in the call on my .info file.