Browse Source

That will really avoid PHP warnings

experimental/new_apache_hooks
Tomas V.V.Cox 24 years ago
parent
commit
fda17098b1
  1. 4
      pear/PEAR/Command/Common.php

4
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 {

Loading…
Cancel
Save