summaryrefslogtreecommitdiff
path: root/pear/PEAR
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-06-06 06:40:05 +0000
committerTomas V.V.Cox <cox@php.net>2002-06-06 06:40:05 +0000
commitfda17098b104e7ac00fccdabe174f71e0457ddea (patch)
treec0b1801a769b4f0ca1dff1d5be52f14226dfb13c /pear/PEAR
parent1971e52e334a8a05f9a598afbd78e2ba3e691eba (diff)
downloadphp-git-fda17098b104e7ac00fccdabe174f71e0457ddea.tar.gz
That will really avoid PHP warnings
Diffstat (limited to 'pear/PEAR')
-rw-r--r--pear/PEAR/Command/Common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pear/PEAR/Command/Common.php b/pear/PEAR/Command/Common.php
index e57d279699..e2d7a34dc6 100644
--- a/pear/PEAR/Command/Common.php
+++ b/pear/PEAR/Command/Common.php
@@ -174,10 +174,10 @@ class PEAR_Command_Common extends PEAR
foreach ($this->commands[$command]['options'] as $k => $v) {
if (isset($v['shortopt'])) {
$s = $v['shortopt'];
- if (@$s{1} == ':') {
+ if (strlen($s) > 1 && $s{1} == ':') {
$argname = '';
$optional = false;
- if (@$s{2} == ':') {
+ if (strlen($s) > 2 && $s{2} == ':') {
$optional = true;
$argname = substr($s, 3);
} else {