Active
Project:
Profiler
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2013 at 13:44 UTC
Updated:
21 Jan 2013 at 13:44 UTC
Hi there.
I have found small code mistake that cause warnings.
File profiler_api.inc, function profiler_install_users()
There is explode presented and it may receive array parameter instead of string.
You will get next error:
Warning: explode() expects parameter 2 to be string, array given in profiler_install_users() (line 395 of profiler_api.inc).
To reproduce this error you should add user without roles to .info file.
For example:
users[test][uid] = 20
users[test][name] = username
users[test][mail] = example@example.com
users[test][status] = 1
Small patch that fix it attached.
Cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| code_mistake.patch | 596 bytes | d.olaresko |