Commit 0a920147 authored by Joel Martin's avatar Joel Martin

include/webutil.js: fix dirObj undefined attribute.

parent d0c29bb6
......@@ -59,7 +59,11 @@ WebUtil.dirObj = function (obj, depth, parent) {
msg += WebUtil.dirObj(obj[i], depth-1, parent + "." + i);
} else {
//val = new String(obj[i]).replace("\n", " ");
val = obj[i].toString().replace("\n", " ");
if (typeof(obj[i]) === "undefined") {
val = "undefined";
} else {
val = obj[i].toString().replace("\n", " ");
}
if (val.length > 30) {
val = val.substr(0,30) + "...";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment