Index: handlers/views_handler_filter_numeric.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/handlers/views_handler_filter_numeric.inc,v
retrieving revision 1.7.4.1
diff -u -p -r1.7.4.1 views_handler_filter_numeric.inc
--- handlers/views_handler_filter_numeric.inc	8 Mar 2010 19:53:49 -0000	1.7.4.1
+++ handlers/views_handler_filter_numeric.inc	2 Jun 2010 08:53:31 -0000
@@ -87,6 +87,36 @@ class views_handler_filter_numeric exten
           'short' => t('not empty'),
           'values' => 0,
         ),
+	'equal to empty' => array(
+          'title' => t('Is equal to OR empty (NULL)'),
+          'method' => 'op_simple_or_empty',
+          'short' => t('='),
+          'values' => 1,
+        ),
+        'less than empty' => array(
+          'title' => t('Is less than OR empty (NULL)'),
+          'method' => 'op_simple_or_empty',
+          'short' => t('<'),
+          'values' => 1,
+        ),
+        'greater than empty' => array(
+          'title' => t('Is greater than OR empty (NULL)'),
+          'method' => 'op_simple_or_empty',
+          'short' => t('>'),
+          'values' => 1,
+        ),
+        'less than equal empty' => array(
+          'title' => t('Is less than OR equal to OR empty (NULL)'),
+          'method' => 'op_simple_or_empty',
+          'short' => t('<='),
+          'values' => 1,
+        ),
+        'greater than equal empty' => array(
+          'title' => t('Is greater than OR equal OR empty (NULL)'),
+          'method' => 'op_simple_or_empty',
+          'short' => t('>='),
+          'values' => 1,
+        ),
       );
     }
 
@@ -227,6 +257,18 @@ class views_handler_filter_numeric exten
     }
   }
 
+  function op_simple_or_empty($field) {
+    $operators = array(
+      'equal to empty' => '=',
+      'less than empty' => '<',
+      'less than equal empty' => '<=',
+      'greater than empty' => '>',
+      'greater than equal empty' => '>='
+    );
+    $operator = $operators[$this->operator];
+    $this->query->add_where($this->options['group'], "($field $operator %d OR $field IS NULL)", $this->value['value']);
+  }
+
   function op_simple($field) {
     $this->query->add_where($this->options['group'], "$field $this->operator %d", $this->value['value']);
   }
