mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Fix Substitutes Error
This commit is contained in:
parent
15e943cef8
commit
355ad83069
@ -64,7 +64,7 @@ if (isset($_SESSION['sID'])) {
|
||||
$substituteAccess[$row['oType']][] = $row['oID'];
|
||||
}
|
||||
|
||||
$query = $sql->prepare("SELECT `name`,`vname`,`lastlogin`,`show_help_text` FROM `userdata_substitutes` WHERE `sID`=? LIMIT 1");
|
||||
$query = $sql->prepare("SELECT `loginName`, `name`,`vname`,`lastlogin`,`show_help_text` FROM `userdata_substitutes` WHERE `sID`=? LIMIT 1");
|
||||
$query->execute(array($_SESSION['sID']));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$great_name = $row['name'];
|
||||
@ -72,7 +72,7 @@ if (isset($_SESSION['sID'])) {
|
||||
$lastlogin = $row['lastlogin'];
|
||||
$userWantsHelpText = $row['show_help_text'];
|
||||
|
||||
$great_user = ($row['name'] != '' and $row['vname'] != '') ? trim ($row['vname'] . ' ' . $row['name']) : $row['cname'];
|
||||
$great_user = ($row['name'] != '' and $row['vname'] != '') ? trim ($row['vname'] . ' ' . $row['name']) : $row['loginName'];
|
||||
}
|
||||
|
||||
$gscount = count($substituteAccess['gs']);
|
||||
@ -225,4 +225,4 @@ if ($dbcount > 0 and $easywiModules['my'] === true) {
|
||||
|
||||
if ($easywiModules['ip'] === true) {
|
||||
$what_to_be_included_array['ip'] = 'imprint.php';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user