diff options
author | Stig Bakken <ssb@php.net> | 2002-04-07 15:49:23 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2002-04-07 15:49:23 +0000 |
commit | 255bbff361001fd66b0cb8b71bf5173e6e3d4575 (patch) | |
tree | e376ba836b7e725b8136c9ebb856d54396d78665 /pear/PEAR | |
parent | 3b6b13b08afa71c5c001304580dce5922ad00d9d (diff) | |
download | php-git-255bbff361001fd66b0cb8b71bf5173e6e3d4575.tar.gz |
* leave error reporting to the validator
Diffstat (limited to 'pear/PEAR')
-rw-r--r-- | pear/PEAR/Common.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index f9385bb783..a50ece6969 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -406,11 +406,7 @@ class PEAR_Common extends PEAR $this->current_maintainer['email'] = $data; break; case 'role': - if (!in_array($data, $this->maintainer_roles)) { - trigger_error("The maintainer role: '$data' is not valid", E_USER_WARNING); - } else { - $this->current_maintainer['role'] = $data; - } + $this->current_maintainer['role'] = $data; break; case 'version': $data = ereg_replace ('[^a-zA-Z0-9._\-]', '_', $data); @@ -435,9 +431,7 @@ class PEAR_Common extends PEAR } break; case 'state': - /* if (!in_array($data, $this->release_states)) { - trigger_error("The release state: '$data' is not valid", E_USER_WARNING); - } else*/if ($this->in_changelog) { + if ($this->in_changelog) { $this->current_release['release_state'] = $data; } else { $this->pkginfo['release_state'] = $data; |