Active
Project:
HTPasswd Sync
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2012 at 17:00 UTC
Updated:
3 May 2012 at 17:00 UTC
When using PHP 5.4 you will receive a strict warning if you save a password from a user account.
Strict warning: Only variables should be passed by reference in htpasswdsync_field_attach_submit() (line 399 of HTPasswdSync.module).
To correct the issue the db_query function needs to be assigned to a variable before you can call reset on the result.
Line 399 in HTPasswdSync.module should be changed to the code below:
$result = db_query('SELECT pass FROM {users} WHERE uid=:uid', array(':uid' => $entity->uid))->fetchCol();
$r = reset($result);