Browse Source

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

Co-authored-by: Tim Fry <[email protected]>
frytimo 11 months ago
parent
commit
d2251cd9cf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/classes/token.php

+ 1 - 0
resources/classes/token.php

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