I get the Following PHP notice
Notice: Undefined offset: 0 in context_condition_useragent->condition_form() (line 22 of /var/www/fyn_local/sites/all/modules/contrib_modules/context_useragent/context_condition_useragent.inc).
Thanks,
Dinesh
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | context_useragent-undefined_offset_error-1326998-3.patch | 694 bytes | john bickar |
Comments
Comment #1
bryan cordrey commentedI am noticing the same issue. Has there been any progress on this issue?
Comment #2
bpirkle commentedI fixed it by changing the offending line to:
Comment #3
john bickar commentedIt doesn't even look like you need to explicitly define the #default_value for that form field. Deleting the code that sets that still allows the form to pick up the regex defined in an existing context_useragent condition, unless I'm missing something.
See attached patch.
Comment #4
john bickar commentedComment #5
sherakama commentedPatch is good. No need to define the default value.
Please roll it into project.
Comment #6
sherakama commentedPing.
Checking in on getting this into a new release.
Comment #7
nicholas.alipaz commentedComment #9
nicholas.alipaz commentedThis is now committed. A new dev version with the change should show up soon.