diff --git a/wa-apps/team/lib/classes/teamUser.class.php b/wa-apps/team/lib/classes/teamUser.class.php index f45f4c53f..69647c0a6 100644 --- a/wa-apps/team/lib/classes/teamUser.class.php +++ b/wa-apps/team/lib/classes/teamUser.class.php @@ -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) { @@ -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(); diff --git a/wa-apps/team/lib/config/app.php b/wa-apps/team/lib/config/app.php index ac226d65b..82f194b38 100644 --- a/wa-apps/team/lib/config/app.php +++ b/wa-apps/team/lib/config/app.php @@ -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,