Closed (fixed)
Project:
Legal
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 01:21 UTC
Updated:
18 Jul 2012 at 13:00 UTC
Jump to comment: Most recent file
legal.module L592 - Call to user_load() passes an array containing uid. It should pass the uid directly. Causes warning below.
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of C:\Program Files\xampp\htdocs\drupal-7.8\includes\entity.inc).
legal.module
592c592
< $user = user_load(array('uid' => $values['uid']));
---
> $user = user_load($values['uid']);| Comment | File | Size | Author |
|---|---|---|---|
| #2 | legal_Dec_13_2012.patch | 426 bytes | grantlucas |
Comments
Comment #1
josh.hill commentedComment #2
grantlucas commentedI can confirm this in drupal 7.9 as well and Legal 7.x-1.2. Added patch file which contains the same as posted above but in patch file format.
Comment #3
rooby commentedThis has been fixed in dev but not closed off.
See commit http://drupalcode.org/project/legal.git/commit/f8b4312
Comment #5
oystercrackher commentedHi, I have made this one active again. I have tried installing the patch and the patch fails with error message as follows:
"patch failed: legal.module:582"
"legal.module: patch does not apply"
Please advise any thoughts on how to proceed further.
Thanks
Comment #6
grantlucas commented@oystercrackher This was fixed in the Dev branch months ago according to @rooby. I would recommend installing the 7.x-1.x-dev version of this module as it should be good there. If there is still an issue, I would open up a new ticket.
Comment #7
oystercrackher commentedGreat. Thanks
Comment #8
Mat77 commentedHello,
Maybe this could be commited to the main release?
It's weird to have a "ready for production" release containing such a warning.
Anyway, thanks for this great module.
Matt