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)));
CommentFileSizeAuthor
#2 46689.patch646 bytesWesley Tanaka

Comments

Wesley Tanaka’s picture

This appears to happen for logged in users, but not for anonymous users.

Wesley Tanaka’s picture

Priority: Normal » Minor
StatusFileSize
new646 bytes

I guess the second argument of user_access changed in rev 1.565.

BoarK’s picture

Hi, 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

killes@www.drop.org’s picture

Status: Active » Closed (won't fix)

changes should be documented in the update guide.