@@ -492,7 +492,10 @@ class Whlabel extends Start_Controller
$where .= " and purchase = '$purchase'";
}
if (isset($state)) {
- $where .= " and state = '$state'";
+ if($state >-1){
+ $where .= " and state = '$state'";
+ }
+
if ($lacetype) {