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