- Issue created by @ethan1el
- Status changed to Closed: works as designed
over 1 year ago 4:03pm 15 April 2023 - πΈπ°Slovakia poker10
Thanks for reporting this. If you take a look at the documentation of the
user_load()
function:Parameters
$uid: Integer specifying the user ID to load.$reset: TRUE to reset the internal cache and load from the database; FALSE (default) to load from the internal cache, if set.
Then you can see that you have to pass an integer as the first parameter. Anything else is just a wrong input and Drupal core should not "babysit" a broken code (either custom, or potentially some bugs from views module).
Also if you take a look at the documentation of the
user_load_multiple()
function:Parameters
$uids: An array of user IDs.$conditions: (deprecated) An associative array of conditions on the {users} table, where the keys are the database fields and the values are the values those fields must have. Instead, it is preferable to use EntityFieldQuery to retrieve a list of entity IDs loadable by this function.
$reset: A boolean indicating that the internal cache should be reset. Use this if loading a user object which has been altered during the page request.
Then you can see that the first parameter is an array, but it has to be an array of integers (empty string is not allowed here). Therefore the same applies as above.
I am changing the status to Works as designed, as the problem seems to be outside of the Drupal core. If there is a bug in the Views module, please fill up the issue in the views issue queue β .