mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
[feature/system-cron] preg_match returns int so cast to bool, fix comment
PHPBB3-9596
This commit is contained in:
parent
2e47409e80
commit
7a2c5e618b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue