Closed (fixed)
Project:
LayoutStudio
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 May 2011 at 22:30 UTC
Updated:
13 Jun 2011 at 21:51 UTC
For some reason, the code for hiding or showing the breadcrumb keeps spitting out this error, and I'm not sure why:
Notice: Undefined offset: 1 in layoutstudio_preprocess_html() (line 54 of /Users/rene/Sites/projects/ls7/sites/all/themes/layoutstudio/template.php).
Comments
Comment #1
rhache commentedI should point out that whenever I clear the cache, the issue goes away temporarily.
Rene
Comment #2
rjay commentedTurns out this was caused by the code that was building the classes for section and sub-section. It was assuming that the path always had multiple parts (eg. it contained at least one '/'), so it was generating the notice that you saw whenever the path only contained one part. I've corrected the code to handle this scenario properly.
Committed to 7.x-1.x.
Ryan