--- a/editor/include/editing.inc.php
+++ b/editor/include/editing.inc.php
@@ -43,3 +43,11 @@
 	;
 	return mail($email, email_header($subject), $beginning . $message . $attachments, $headers);
 }
+
+/** Check whether the column looks like boolean
+* @param array single field returned from fields()
+* @return bool
+*/
+function like_bool($field) {
+	return ereg("bool|(tinyint|bit)\\(1\\)", $field["full_type"]);
+}