[SOGo] Add logo to config dir

[Web] Add missing lang strings for transport maps
This commit is contained in:
andryyy
2018-12-20 19:02:47 +01:00
parent fbe46e39e5
commit ad90496169
4 changed files with 52 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ function transport($_action, $_data = null) {
$transports = transport('get');
if (!empty($transports)) {
foreach ($transports as $transport) {
if (transport('details', $transport['id'])['nexthop'] == $nexthop && !empty(transport('details', $transport['id'])['username'])) {
if (transport('details', $transport['id'])['nexthop'] == $nexthop && transport('details', $transport['id'])['username'] != $username) {
$_SESSION['return'][] = array(
'type' => 'danger',
'log' => array(__FUNCTION__, $_action, $_data_log),
@@ -274,6 +274,9 @@ function transport($_action, $_data = null) {
$password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
$active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active_int'];
}
if (empty($username)) {
$password = '';
}
else {
$_SESSION['return'][] = array(
'type' => 'danger',