get rid of php notice undefined variable: channel

This commit is contained in:
Klaus Leithoff 2014-06-10 09:16:10 +00:00
parent 315a0d4ac0
commit 0b851a622b

View File

@ -362,7 +362,7 @@ function pear_check($package,$args)
global $passed_icon, $warning_icon; global $passed_icon, $warning_icon;
static $pear_available = null; static $pear_available = null;
static $channel_packages = array(); static $channel_packages = array();
$channel = '';
if (strpos($package, '/') !== false) if (strpos($package, '/') !== false)
{ {
list($channel, $package) = explode('/', $package); list($channel, $package) = explode('/', $package);