From 8ed3549c7fba71252f4b8dec33432b2542391e8d Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Wed, 4 Feb 1998 02:09:05 +0100 Subject: [PATCH] Bug in filter on mappings fixed. Rev: lib/modules/Array.pmod:1.7 --- lib/modules/Array.pmod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/Array.pmod b/lib/modules/Array.pmod index 613c30d24b..f806cc9064 100644 --- a/lib/modules/Array.pmod +++ b/lib/modules/Array.pmod @@ -42,7 +42,7 @@ mixed filter(mixed arr, mixed fun, mixed ... args) r=([]); for(e=0;e<sizeof(ret);e++) if(ret[e]) r[i[e]]=v[e]; - return ret; + return r; }else{ int d; ret=map(arr,fun,@args); -- GitLab