small bugfix
authorFelix Fietkau <nbd@openwrt.org>
Fri, 7 Oct 2005 11:19:06 +0000 (11:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 7 Oct 2005 11:19:06 +0000 (11:19 +0000)
SVN-Revision: 2064

openwrt/package/webif/files/usr/lib/webif/webif.sh

index ed98caa34ee3a35b36a7d6631452f64871e672a7..fba768d7897b3fd6426d107252873ea17537df02 100644 (file)
@@ -17,9 +17,9 @@ categories() {
                c[n] = $4
                if (f[$4] == "") f[$4] = "'"$rootdir/$indexpage"'?cat=" $4
        }
-       ($3 == "name") && ((n[$4] == 0) || (n[$4] > int($5))) {
+       ($3 == "name") && ((p[$4] == 0) || (p[$4] > int($5))) {
                gsub(/^.*\//, "", $1);
-               n[$4] = int($5)
+               p[$4] = int($5)
                f[$4] = "'"$rootdir"'/" $1
        }
        END {