diff --git a/resources/classes/token.php b/resources/classes/token.php index 115809c1b4..e9656d33d0 100644 --- a/resources/classes/token.php +++ b/resources/classes/token.php @@ -75,7 +75,7 @@ class token { * @var string $key * @var string $value */ - public function validate($key, $value = null) { + public function validate($key, $value = '') { //allow only specific characters $key = preg_replace('[^a-zA-Z0-9]', '', $key);