exit for loop when matching token for slight performance increase (#7092)

Co-authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
frytimo 2024-08-15 17:10:08 -03:00 committed by GitHub
parent e57053a3f3
commit d7035fecaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class token {
$token_name = $token['name']; $token_name = $token['name'];
if (isset($_REQUEST[$token_name])) { if (isset($_REQUEST[$token_name])) {
$value = $_REQUEST[$token_name]; $value = $_REQUEST[$token_name];
break;
} }
} }
} }