2007-10-04 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web / SiteMapNode.cs
index e63995dabe070a128dba9c67de79d76e40ee0692..9c159aea30b4772c899e78a9c8d236ce27d527a1 100644 (file)
@@ -247,13 +247,13 @@ namespace System.Web {
                public virtual string this [string key]
                {
                        get {
-                               string val = null;
                                if (provider.EnableLocalization) {
-                                       val = GetImplicitResourceString (key);
+                                       string val = GetImplicitResourceString (key);
                                        if (val == null)
                                                val = GetExplicitResourceString (key, null, true);
+                                       if (val != null)
+                                               return val;
                                }
-                               if (val != null) return null;
                                if (attributes != null) return attributes [key];
                                return null;
                        }