48c48,49<       while ($data = db_fetch_object($result)) {--->       $bool = true;> 	  while ($data = db_fetch_object($result) AND $bool==true) {54,57c55,59<           $bool = module_invoke($product->ptype, 'productapi', $product, 'in_stock', $error);<           if ($bool[0]) {<             return true;<           }--->           if (!module_invoke($product->ptype, 'productapi', $product, 'in_stock')) {>             $bool = false;>           } else {> 		  	$bool = true;> 		  }60c62<       return false;---> 	  return $bool;