Revision: 2309
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2309&view=rev
Author:   cimorrison
Date:     2012-06-29 15:38:51 +0000 (Fri, 29 Jun 2012)
Log Message:
-----------
Added some resilience to get_vocab() so that if a vocab string does not exist 
for a tag then the tag itself is returned.

Modified Paths:
--------------
    mrbs/trunk/web/language.inc

Modified: mrbs/trunk/web/language.inc
===================================================================
--- mrbs/trunk/web/language.inc 2012-06-29 15:28:11 UTC (rev 2308)
+++ mrbs/trunk/web/language.inc 2012-06-29 15:38:51 UTC (rev 2309)
@@ -850,8 +850,9 @@
   {
     $vocab_array = $vocab;
   }
-
-  return $vocab_array[$tag];
+  
+  // Return the tag itself if we can't find a vocab string
+  return (isset($vocab_array[$tag])) ? $vocab_array[$tag] : $tag;
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to