logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pear-core /PEAR/REST 10.php: msg#00314

Subject: cvs: pear-core /PEAR/REST 10.php
cellog          Wed Sep 28 18:35:54 2005 EDT

  Modified files:              
    /pear-core/PEAR/REST        10.php 
  Log:
  potential fix for #5548
  
http://cvs.php.net/diff.php/pear-core/PEAR/REST/10.php?r1=1.34&r2=1.35&ty=u
Index: pear-core/PEAR/REST/10.php
diff -u pear-core/PEAR/REST/10.php:1.34 pear-core/PEAR/REST/10.php:1.35
--- pear-core/PEAR/REST/10.php:1.34     Sun Sep 25 01:25:23 2005
+++ pear-core/PEAR/REST/10.php  Wed Sep 28 18:35:53 2005
@@ -15,7 +15,7 @@
  * @author     Greg Beaver <cellog@xxxxxxx>
  * @copyright  1997-2005 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
- * @version    CVS: $Id: 10.php,v 1.34 2005/09/25 05:25:23 cellog Exp $
+ * @version    CVS: $Id: 10.php,v 1.35 2005/09/28 22:35:53 cellog Exp $
  * @link       http://pear.php.net/package/PEAR
  * @since      File available since Release 1.4.0a12
  */
@@ -179,7 +179,7 @@
             }
             // allow newer releases to say "I'm OK with the dependent package"
             if ($xsdversion == '2.0' && isset($release['co'])) {
-                if (!isset($release['co'][0])) {
+                if (!is_array($release['co']) || !isset($release['co'][0])) {
                     $release['co'] = array($release['co']);
                 }
                 foreach ($release['co'] as $entry) {

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>