cvs: pear /PEAR_Frontend_Gtk/Gtk Packages.php

From: Date: Sat, 01 Jun 2002 13:05:09 +0000
Subject: cvs: pear /PEAR_Frontend_Gtk/Gtk Packages.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4333@lists.php.net to get a copy of this message
alan_k Sat Jun 1 09:05:09 2002 EDT Modified files: /pear/PEAR_Frontend_Gtk/Gtk Packages.php Log: Fix warnings on uninitiated variables Index: pear/PEAR_Frontend_Gtk/Gtk/Packages.php diff -u pear/PEAR_Frontend_Gtk/Gtk/Packages.php:1.3 pear/PEAR_Frontend_Gtk/Gtk/Packages.php:1.4 --- pear/PEAR_Frontend_Gtk/Gtk/Packages.php:1.3 Sat Jun 1 08:57:26 2002 +++ pear/PEAR_Frontend_Gtk/Gtk/Packages.php Sat Jun 1 09:05:09 2002 @@ -59,7 +59,7 @@ foreach ($this->_available_packages as $name => $info) { // installed already? $info['package'] = $name; - if ($this->_package_status[$name]) { + if (@$this->_package_status[$name]) { // newer $v = $this->_package_status[$name]['version']; $this->_package_status[$name] = $info; @@ -142,9 +142,9 @@ } $showversion = $info['stable']; - if ($info['version'] && ($info['version'] != $info['stable'])) + if (@$info['version'] && (@$info['version'] != $info['stable'])) $showversion = "New:".$info['stable']; - // $showversion = "**".$info['version'] . "->".$info['stable']. "**"; + //$showversion = "**".$info['version'] . "->".$info['stable']. "**"; $this->_nodes[$name] = $this->widget->insert_node( $parent, NULL, //parent, sibling @@ -196,7 +196,7 @@ */ function _initPixmaps(&$window) { - if ($this->_pixmaps) return; + if (@$this->_pixmaps) return; $dir = dirname(__FILE__).'/xpm'; $dh = opendir($dir); if (!$dh) return; @@ -215,7 +215,6 @@ * */ function _callbackSelectRow($node,$col) { - print_r(array($node,$a,$b)); $package = $this->widget->node_get_row_data($node); //if (!$package) return;

« previous php.pear.cvs (#4333) next »