From: Felix Fietkau Date: Fri, 7 Oct 2005 11:19:06 +0000 (+0000) Subject: small bugfix X-Git-Tag: whiterussian_rc4~141 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79d606f20985646ec9a90790ce6017eb8a9c5831;p=openwrt%2Fsvn-archive%2Fopenwrt.git small bugfix SVN-Revision: 2064 --- diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index ed98caa34e..fba768d789 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -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 {