@@ -1752,7 +1752,7 @@ class Warehouse extends Start_Controller {
{
$where .= " and shop = '$shop'";
}
- if($type)
+ if(!empty($type))
$where .= " and type = '$type'";