diff options
Diffstat (limited to 'source4/scripting/ejs/mprutil.c')
-rw-r--r-- | source4/scripting/ejs/mprutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index c915174126..6b5c02c48d 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -108,6 +108,9 @@ struct MprVar mprList(const char *name, const char **list) for (i=0;list && list[i];i++) { mprAddArray(&var, i, mprCreateStringVar(list[i], 1)); } + if (i==0) { + mprSetVar(&var, "length", mprCreateIntegerVar(i)); + } return var; } |