svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ Commands.php
| From: | Brett Bieber | Date: | Tue, 11 Jan 2011 10:07:46 +0000 |
| Subject: | svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ Commands.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9718@lists.php.net to get a copy of this message | ||
saltybeagle Tue, 11 Jan 2011 10:07:46 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=307370
Log:
Fix a few Notice: Undefined index: scanoptions
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php 2011-01-11 10:05:03 UTC
(rev 307369)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/Commands.php 2011-01-11 10:07:46 UTC
(rev 307370)
@@ -32,11 +32,12 @@
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) {
@@ -1040,4 +1041,4 @@
}
return $ret;
}
-}
\ No newline at end of file
+}