--- uc_multi_stock.module	2011-02-25 03:09:08.000000000 +0100
+++ uc_multi_stock.module-2	2011-09-26 10:24:14.000000000 +0200
@@ -166,7 +166,9 @@
  */
 function uc_multi_stock_uc_cart_view_validate($form, &$form_state) {
   // for every item in the cart
+  $i=-1;
   foreach ($form_state['values']['items'] as $item) {
+      $i++;
     $nid = $item['nid'];
     $data = unserialize($item['data']);
 
@@ -176,10 +178,11 @@
     $sku = uc_multi_get_sku($nid, $data['attributes']);
 
     // dont test the removal of out of stock products
-    if (empty($item['remove']) && $item['qty']>0) {
+
+    if (empty($form['items'][0]['nid']['#post']['remove-'.$i]) && $item['qty']>0) {
       $tmp_error = uc_multi_stock_can_buy($product, $sku, $item['qty'], $data['attributes']);
       if ($tmp_error) {
-        $error .= $tmp_error .'<br /><br />';
+        $error .= $tmp_error .'<br />';
       }
     }
   }
