Changeset

3140:8c6ed6fd2d35

util.filters: Break processing if a filterer returns nil
author Matthew Wild <mwild1@gmail.com>
date Wed, 02 Jun 2010 13:31:36 +0100
parents 3139:7b4f180d7c6f
children 3141:50318ac90394
files util/filters.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/filters.lua	Wed Jun 02 13:03:55 2010 +0100
+++ b/util/filters.lua	Wed Jun 02 13:31:36 2010 +0100
@@ -19,6 +19,7 @@
 		if filter_list then
 			for i = 1, #filter_list do
 				data = filter_list[i](data);
+				if data == nil then break; end
 			end
 		end
 		return data;