Minor - format code

pull/2487/head
jmontoyaa 7 years ago
parent 8e8c82d177
commit 0ebac8306d
  1. 14
      main/inc/lib/sessionmanager.lib.php
  2. 1
      main/session/session_import_drh.php
  3. 2
      plugin/azure_active_directory/src/AzureActiveDirectory.php

@ -2765,20 +2765,20 @@ class SessionManager
/**
* Get the session information by name
* @param string $session_name
* @param string $name
* @return mixed false if the session does not exist, array if the session exist
* */
public static function get_session_by_name($session_name)
public static function get_session_by_name($name)
{
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
$session_name = trim($session_name);
if (empty($session_name)) {
$name = Database::escape_string(trim($name));
if (empty($name)) {
return false;
}
$sql = 'SELECT *
FROM ' . $tbl_session.'
WHERE name = "' . Database::escape_string($session_name).'"';
FROM '.$tbl_session.'
WHERE name = "'.$name.'"';
$result = Database::query($sql);
$num = Database::num_rows($result);
if ($num > 0) {
@ -6244,7 +6244,7 @@ class SessionManager
}
}
$message .= '<strong>'.get_lang('User').'</strong> '.$userInfo['complete_name'].' <br />';
$message .= '<strong>'.get_lang('User').'</strong>: '.$userInfo['complete_name'].' <br />';
if (!in_array($userInfo['status'], array(DRH)) && !api_is_platform_admin_by_id($userInfo['user_id'])) {
$message .= get_lang('UserMustHaveTheDrhRole').'<br />';

@ -15,7 +15,6 @@ api_protect_limit_for_session_admin();
$form_sent = 0;
$tool_name = get_lang('ImportSessionDrhList');
//$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList'));
set_time_limit(0);

@ -1,4 +1,6 @@
<?php
/* For license terms, see /license.txt */
/**
* AzureActiveDirectory plugin class
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>

Loading…
Cancel
Save