Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.0

Bug #5821 [PATCH] E_NOTICE in AmazonECS4.php
Submitted: 2005-10-29 07:42 UTC
From: ttsuruoka Assigned: ttsuruoka
Status: Closed Package: Services_Amazon
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-29 07:42 UTC] ttsuruoka
Description: ------------ Services_AmazonECS4 returns the following error: "Notice: Undefined index: Errors in /path/to/AmazonECS4.php on line 989" Here's a patch: Index: AmazonECS4.php =================================================================== --- AmazonECS4.php (revision 58) +++ AmazonECS4.php (working copy) @@ -986,8 +986,8 @@ */ function _checkContentError($content) { - $error = $content['Request']['Errors']['Error']; - if (isset($error)) { + if (isset($content['Request']['Errors']['Error'])) { + $error = $content['Request']['Errors']['Error']; if (isset($error['Code'])) { $errormsg = $error['Code'] . ':' . $error['Message']; } else {

Comments

 [2005-11-25 02:29 UTC] ttsuruoka at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.