Minor - format code

ofaj
jmontoyaa 8 years ago
parent f4e9e0481c
commit c414bad209
  1. 17
      main/inc/lib/usermanager.lib.php

@ -409,7 +409,14 @@ class UserManager
null,
PERSON_NAME_EMAIL_ADDRESS
);
$tplSubject = new Template(null, false, false, false, false, false);
$tplSubject = new Template(
null,
false,
false,
false,
false,
false
);
$layoutSubject = $tplSubject->get_template(
'mail/subject_registration_platform.tpl'
);
@ -558,7 +565,6 @@ class UserManager
WHERE status=1 AND c_id = " . intval($course->c_id);
$res2 = Database::query($sql);
if (Database::num_rows($res2) == 1) {
return false;
}
}
@ -797,7 +803,6 @@ class UserManager
public static function deactivate_users($ids = array())
{
if (empty($ids)) {
return false;
}
@ -828,7 +833,6 @@ class UserManager
public static function activate_users($ids = array())
{
if (empty($ids)) {
return false;
}
@ -1203,7 +1207,6 @@ class UserManager
public static function create_username($firstname, $lastname)
{
if (empty($firstname) && empty($lastname)) {
return false;
}
@ -1478,9 +1481,9 @@ class UserManager
if (count($order_by) > 0) {
$sql_query .= ' ORDER BY '.Database::escape_string(implode(',', $order_by), null, false);
}
$sql_result = Database::query($sql_query);
while ($result = Database::fetch_array($sql_result)) {
$result['complete_name'] = api_get_person_name(
$result['firstname'],
$result['lastname']
@ -1570,7 +1573,7 @@ class UserManager
*
* @return array Array of 2 elements: 'dir' and 'file' which contain
* the dir and file as the name implies if image does not exist it will
* return the unknow image if anonymous parameter is true if not it returns an empty array
* return the unknown image if anonymous parameter is true if not it returns an empty array
*/
public static function getUserPicturePathById($id, $type = 'web', $userInfo = [])
{

Loading…
Cancel
Save