--- webfm.js	2010-03-11 04:49:00.000000000 +0800
+++ ../../../webfm/js/webfm.js	2010-04-16 17:06:37.000000000 +0800
@@ -2345,7 +2345,7 @@ Webfm.perm.prototype.submitPerm = functi
   inputs = this.tbody.getElementsByTagName('input');
 
   var output = 0;
-  for(var i in inputs) {
+  for(i = 0; i < inputs.length; i++) {
     // Build permission val from checkbox name
     if(inputs[i].checked)
       output += parseInt(inputs[i].name);
