The user_load function doesn't work with passing arrays anymore in drupal 7. This gives following errors on drupal:
array_flip():Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load()
In each of the submodules this error occurs. The code needs to be changed to this:

if (is_numeric($username)) {
    $user = user_load($username);
  }
  else $user = user_load_by_name($username);

See the complete info on the code issue and associated error here:
http://stackoverflow.com/questions/4798047/array-flipcan-only-flip-strin...

CommentFileSizeAuthor
#1 views_datasource-1350488.patch1.64 KBphoenix

Comments

phoenix’s picture

Status: Active » Needs review
StatusFileSize
new1.64 KB

Attached a patch to resolve this issue. Can you please test and confirm this works?

pasqualle’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

phoenix’s picture

@Pasqualle Thanks for attributing the commit to me ;)
Just saw it in my profile under the "your commits" tab.

pasqualle’s picture

@phoenix you are welcome
actually I wanted to attribute you as a patch author (It also displays under the "your commits" tab), but I made an error and you were attributed as a committer, see #1350822: Git committer can be changed

you are now also listed as a committer on http://drupal.org/node/260895/committers
but you never was a maintainer of this module. It's a little bit of inconsistency, but it's ok..

pasqualle’s picture

Issue summary: View changes

Added extra info on the issue