I visited comment/reply/[node number], and got this in my log:
implode(): Bad arguments. in ..../modules/user.module on line 333.
(user.module v1.571)
line in question:
$result = db_query("SELECT DISTINCT(p.perm) FROM {role}....., implode(',', array_keys($account->roles)));
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 46689.patch | 646 bytes | Wesley Tanaka |
Comments
Comment #1
Wesley Tanaka commentedThis appears to happen for logged in users, but not for anonymous users.
Comment #2
Wesley Tanaka commentedI guess the second argument of user_access changed in rev 1.565.
Comment #3
BoarK commentedHi, I'm getting the following error in user.module after an upgrade from 4.7b3->4.7b6
[00:47] warning: array_keys() [function.array-keys]: The first argument should be an array in C:\web\xampp\htdocs\drupal47b2\modules\user.module on line 339.
Fixed: line 339 in user.module : $account->roles should be $user->roles
Comment #4
killes@www.drop.org commentedchanges should be documented in the update guide.