Browse Source

#707: oops, prevent a warning when no dict entry...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2721 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
c21307f36b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/webpage.class.inc.php

+ 2 - 1
application/webpage.class.inc.php

@@ -678,9 +678,10 @@ class WebPage implements Page
 
 
 	protected function output_dict_entries($bReturnOutput = false)
 	protected function output_dict_entries($bReturnOutput = false)
 	{
 	{
+		$sHtml = '';
 		if (count($this->a_dict_entries)>0)
 		if (count($this->a_dict_entries)>0)
 		{
 		{
-			$sHtml = "<script type=\"text/javascript\">\n";
+			$sHtml .= "<script type=\"text/javascript\">\n";
 			$sHtml .= "var Dict = {};\n";
 			$sHtml .= "var Dict = {};\n";
 			$sHtml .= "Dict._entries = {};\n";
 			$sHtml .= "Dict._entries = {};\n";
 			$sHtml .= "Dict.S = function(sEntry) {\n";
 			$sHtml .= "Dict.S = function(sEntry) {\n";