Skip to content

Commit a1b6853

Browse files
author
Leonix
committed
Team v.2.1.4
* Improved support for the latest PHP versions.
1 parent e800dad commit a1b6853

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

wa-apps/team/lib/classes/teamUser.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function getCurrentProfileContact()
1616

1717
try {
1818
// Look up by login if specified via routing
19-
$user_login = urldecode(waRequest::param('login', null, waRequest::TYPE_STRING_TRIM));
19+
$user_login = urldecode(waRequest::param('login', '', waRequest::TYPE_STRING_TRIM));
2020
if ($user_login) {
2121
self::$current_user = waUser::getByLogin($user_login);
2222
if (!self::$current_user) {
@@ -238,11 +238,11 @@ public static function createContactToken($contact_id, $data = null)
238238
$app_tokens_model = new waAppTokensModel();
239239

240240
if (empty($data)) {
241-
// if no access params presented
241+
// if no access params presented
242242
// than use access params from previously created and not expired invite token
243243
$prev_tokens = array_filter($app_tokens_model->getByField([
244-
'app_id' => 'team',
245-
'type' => 'user_invite',
244+
'app_id' => 'team',
245+
'type' => 'user_invite',
246246
'contact_id' => $contact_id
247247
], true), function ($el) {
248248
return !empty($el['data']) && $el['data'] !== 'null' && strtotime($el['expire_datetime']) > time();

wa-apps/team/lib/config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
return array(
33
'name' => 'Team',
44
'icon' => 'img/team.svg',
5-
'version' => '2.1.3',
5+
'version' => '2.1.4',
66
'vendor' => 'webasyst',
77
'sash_color' => '#f0dc03',
88
'system' => true,

0 commit comments

Comments
 (0)