1
0
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:
Nils Adermann
2011-01-13 02:17:24 +01:00
committed by Oleg Pudeyev
parent 2e47409e80
commit 7a2c5e618b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
/**