diff --git a/uc_eway.module b/uc_eway.module
index 7fea339..d39c096 100644
--- a/uc_eway.module
+++ b/uc_eway.module
@@ -580,13 +580,18 @@ function theme_uc_eway_transaction_description($products) {
       $description .= $product->qty . 'x ' . $product->title;
       if (isset($product->data['attributes']) && is_array($product->data['attributes'])) {
         foreach ($product->data['attributes'] as $attribute_name => $attribute) {
-          foreach ($attribute as $key => $value) {
-            $description .= ', ' . $attribute_name . ': ' . $value;
+          if (is_array($attribute)) {
+             foreach ($attribute as $key => $value) {
+               $description .= ', ' . $attribute_name . ': ' . $value;
+             }
+          }
+          else
+          {
+             $description .= $attribute;
           }
         }
       }
     }
   }
-
   return $description;
 }
