Minor: Improve PHPDoc and syntax in usermanager.lib.php

pull/4863/head
Yannick Warnier 2 years ago
parent 421461d0e1
commit 7e40ef3a95
  1. 5
      main/inc/lib/usermanager.lib.php

@ -3240,6 +3240,7 @@ class UserManager
* @param bool Whether to prefix the fields indexes with "extra_" (might be used by formvalidator)
* @param bool Whether to return invisible fields as well
* @param bool Whether to split multiple-selection fields or not
* @param mixed Whether to filter on the value of filter
*
* @return array Array of fields => value for the given user
*/
@ -3291,7 +3292,7 @@ class UserManager
} else {
$sqlu = "SELECT value as fval
FROM $t_ufv
WHERE field_id=".$row['id']." AND item_id = ".$user_id;
WHERE field_id = ".$row['id']." AND item_id = ".$user_id;
$resu = Database::query($sqlu);
if (Database::num_rows($resu) > 0) {
@ -3303,7 +3304,7 @@ class UserManager
} else {
// get default value
$sql_df = "SELECT default_value as fval_df FROM $t_uf
WHERE id=".$row['id'];
WHERE id = ".$row['id'];
$res_df = Database::query($sql_df);
$row_df = Database::fetch_array($res_df);
$fval = $row_df['fval_df'];

Loading…
Cancel
Save