Skip to content

Commit

Permalink
Fix a few Notice: Undefined index: scanoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
saltybeagle committed Jan 11, 2011
1 parent bf0b57c commit 061bbc6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Pyrus/Developer/PackageFile/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ function makePackageXml($frontend, $args, $options)
if (!isset($args['channel'])) {
$args['channel'] = 'pear2.php.net';
}
if (!$options['scanoptions'] && file_exists($dir . '/scanoptions.php')) {
if (!isset($options['scanoptions'])
&& file_exists($dir . '/scanoptions.php')) {
$options['scanoptions'] = 'scanoptions.php';
}
$scanoptions = array();
if ($options['scanoptions']) {
if (isset($options['scanoptions'])) {
$file = $options['scanoptions'];
$path = $dir;
$getscanoptions = function() use ($path, $file) {
Expand Down Expand Up @@ -1040,4 +1041,4 @@ static function parseProto($proto)
}
return $ret;
}
}
}

0 comments on commit 061bbc6

Please sign in to comment.