Skip to content

Fix for load_user function in modules/Users/Users.php

its4you requested to merge its4you/vtigercrm:fix_for_load_user into master

Second parameter $dieOnError for requireSingleResult() function is wrong.

in modules/Users/Users.php there was thsi code:

$query = "SELECT * from $this->table_name where user_name=?";

$result = $this->db->requireSingleResult($query, array($usr_name), false);

In include/database/pearDatabase.php the function requireSingleResult()is defined as:

function requireSingleResult($sql, dieOnError=false,msg='', $encode=true)

Merge request reports