diff options
| author | Greg Beaver <cellog@php.net> | 2003-10-31 17:01:39 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2003-10-31 17:01:39 +0000 |
| commit | f3102f9d6b29f7da3f266b12d2ede0b3006fbc8c (patch) | |
| tree | b23b779bbfbbc8dc0412cc069cb4695327eba179 | |
| parent | 8c77fbe7435ebbb05d08c382283d43d9ac4f0bfc (diff) | |
| download | php-git-f3102f9d6b29f7da3f266b12d2ede0b3006fbc8c.tar.gz | |
was checking the wrong parameter for a v. - should be checking version
| -rw-r--r-- | pear/PEAR/Dependency.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pear/PEAR/Dependency.php b/pear/PEAR/Dependency.php index ed57f4e5fe..6e63319d6f 100644 --- a/pear/PEAR/Dependency.php +++ b/pear/PEAR/Dependency.php @@ -126,8 +126,8 @@ class PEAR_Dependency function checkPackage(&$errmsg, $name, $req = null, $relation = 'has', $opt = false) { - if (substr($relation, 0, 2) == 'v.') { - $relation = substr($relation, 2); + if (is_string($req) && substr($req, 0, 2) == 'v.') { + $req = substr($req, 2); } switch ($relation) { case 'has': |
