mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/system-cron] preg_match returns int so cast to bool, fix comment
PHPBB3-9596
This commit is contained in:
committed by
Oleg Pudeyev
parent
2e47409e80
commit
7a2c5e618b
@@ -132,7 +132,7 @@ class phpbb_cron_manager
|
||||
*/
|
||||
public function is_valid_name($name)
|
||||
{
|
||||
return preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name);
|
||||
return (bool) preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user