Browse Source

Token [Class]: Update for PHP 8.1

fusionate 2 years ago
parent
commit
fb08ab1524
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/classes/token.php

+ 1 - 1
resources/classes/token.php

@@ -75,7 +75,7 @@ class token {
 	 * @var string $key
 	 * @var string $key
 	 * @var string $value
 	 * @var string $value
 	 */
 	 */
-	public function validate($key, $value = null) {
+	public function validate($key, $value = '') {
 
 
 		//allow only specific characters
 		//allow only specific characters
 			$key = preg_replace('[^a-zA-Z0-9]', '', $key);
 			$key = preg_replace('[^a-zA-Z0-9]', '', $key);