mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-05 17:34:55 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,7 +55,7 @@ class phpbb_lock_db
|
|||||||
/**
|
/**
|
||||||
* Creates a named released instance of the lock.
|
* Creates a named released instance of the lock.
|
||||||
*
|
*
|
||||||
* You have to call lock to actually create the lock.
|
* You have to call acquire() to actually create the lock.
|
||||||
*
|
*
|
||||||
* @param string $config_name A config variable to be used for locking
|
* @param string $config_name A config variable to be used for locking
|
||||||
* @param array $config The phpBB configuration
|
* @param array $config The phpBB configuration
|
||||||
|
Reference in New Issue
Block a user