@@ -980,9 +980,12 @@ class Specialstock extends Start_Controller {
{
$where .= " and purchase = '$purchase'";
}
- if($state)
+ if(isset($state))
- $where .= " and state = '$state'";
+ if($state > -1){
+ $where .= " and state = '$state'";
+ }
+
if($ktime && $jtime)