|
|
@@ -298,8 +298,16 @@ class Zend_Service_Amazon_Sqs extends Zend_Service_Amazon_Abstract
|
|
|
require_once 'Zend/Service/Amazon/Sqs/Exception.php';
|
|
|
throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
|
|
|
}
|
|
|
-
|
|
|
- return (string) $result->GetQueueAttributesResult->Attribute->Value;
|
|
|
+
|
|
|
+ if(count($result->GetQueueAttributesResult->Attribute) > 1) {
|
|
|
+ $attr_result = array();
|
|
|
+ foreach($result->GetQueueAttributesResult->Attribute as $attribute) {
|
|
|
+ $attr_result[(string)$attribute->Name] = (string)$attribute->Value;
|
|
|
+ }
|
|
|
+ return $attr_result;
|
|
|
+ } else {
|
|
|
+ return (string) $result->GetQueueAttributesResult->Attribute->Value;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|