diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-12-17 01:20:23 +0100 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-12 22:05:52 -0500 |
commit | 3c0561b68fc3bcff387d46d255ca1accc80df88a (patch) | |
tree | acafb324ba45c665e4ee94c0d9457858edb2a6e0 /phpBB/includes/cron | |
parent | f4f8523ca337b790503760e847a197f6343e1dbc (diff) | |
download | forums-3c0561b68fc3bcff387d46d255ca1accc80df88a.tar forums-3c0561b68fc3bcff387d46d255ca1accc80df88a.tar.gz forums-3c0561b68fc3bcff387d46d255ca1accc80df88a.tar.bz2 forums-3c0561b68fc3bcff387d46d255ca1accc80df88a.tar.xz forums-3c0561b68fc3bcff387d46d255ca1accc80df88a.zip |
[feature/system-cron] Cast result in cron_manager::is_valid_name() to bool.
PHPBB3-9596
Diffstat (limited to 'phpBB/includes/cron')
-rw-r--r-- | phpBB/includes/cron/manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/cron/manager.php b/phpBB/includes/cron/manager.php index f8d795a426..1cbf4c1f72 100644 --- a/phpBB/includes/cron/manager.php +++ b/phpBB/includes/cron/manager.php @@ -100,11 +100,11 @@ class phpbb_cron_manager * * @param string $name Name to check * - * @return int + * @return bool */ 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); } /** |