cvs: pear-core(PEAR_1_4) /PEAR/REST 11.php
| From: | Pierre-Alain Joye | Date: | Tue, 15 Aug 2006 18:19:36 +0000 |
| Subject: | cvs: pear-core(PEAR_1_4) /PEAR/REST 11.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4903@lists.php.net to get a copy of this message | ||
pajoye Tue Aug 15 18:19:36 2006 UTC
Modified files: (Branch: PEAR_1_4)
/pear-core/PEAR/REST 11.php
Log:
- not only an array but must have a numeric index
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/REST/11.php?r1=1.4.2.1&r2=1.4.2.2&diff_format=u
Index: pear-core/PEAR/REST/11.php
diff -u pear-core/PEAR/REST/11.php:1.4.2.1 pear-core/PEAR/REST/11.php:1.4.2.2
--- pear-core/PEAR/REST/11.php:1.4.2.1 Tue Aug 15 17:58:39 2006
+++ pear-core/PEAR/REST/11.php Tue Aug 15 18:19:36 2006
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: 11.php,v 1.4.2.1 2006/08/15 17:58:39 pajoye Exp $
+ * @version CVS: $Id: 11.php,v 1.4.2.2 2006/08/15 18:19:36 pajoye Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.3
*/
@@ -56,7 +56,7 @@
return $categorylist;
}
$ret = array();
- if (!is_array($categorylist['c'])) {
+ if (!is_array($categorylist['c']) || !isset($categorylist['c'][0])) {
$categorylist['c'] = array($categorylist['c']);
}
PEAR::pushErrorHandling(PEAR_ERROR_RETURN);