Closed (fixed)
Project:
BUEditor
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2011 at 21:00 UTC
Updated:
24 Mar 2011 at 20:01 UTC
Steps to reproduce:
A couple of errors appear about an undefined offset. The bueditor_user_eids function assumes that the variable bueditor_roles exists, but it doesn't, unless you have saved at least once the BUEditor admin page. After saving the BUEditor settings once, the variable is created and errors disappear.
Comments
Comment #1
ufku commentedShould be checking if $roles[DRUPAL_ANONYMOUS_RID] is set. A fix committed to 6.x-2.x and 7.x-1.x branches.
Thanks for reporting.
Comment #3
mfarha commentedHey guys,
I'm able to reproduce this error on a fresh drupal 7 local install.
1. bueditor module active 7.x-1.0
2. allow commenting for anonymous users
3. refreshing a page with a comment form will display Notice: Undefined offset: 1 in bueditor_user_eids() (line 199 of /Users/macuser/Sites/sitename/sites/all/modules/bueditor/bueditor.inc).
M
Comment #4
ufku commentedfixed on dev branch. will be available in the next official release.