Skip to content

Commit

Permalink
Team v.2.1.4
Browse files Browse the repository at this point in the history
  * Improved support for the latest PHP versions.
  • Loading branch information
Leonix committed Dec 19, 2022
1 parent e800dad commit a1b6853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions wa-apps/team/lib/classes/teamUser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function getCurrentProfileContact()

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

if (empty($data)) {
// if no access params presented
// if no access params presented
// than use access params from previously created and not expired invite token
$prev_tokens = array_filter($app_tokens_model->getByField([
'app_id' => 'team',
'type' => 'user_invite',
'app_id' => 'team',
'type' => 'user_invite',
'contact_id' => $contact_id
], true), function ($el) {
return !empty($el['data']) && $el['data'] !== 'null' && strtotime($el['expire_datetime']) > time();
Expand Down
2 changes: 1 addition & 1 deletion wa-apps/team/lib/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
return array(
'name' => 'Team',
'icon' => 'img/team.svg',
'version' => '2.1.3',
'version' => '2.1.4',
'vendor' => 'webasyst',
'sash_color' => '#f0dc03',
'system' => true,
Expand Down

0 comments on commit a1b6853

Please sign in to comment.