浏览代码

#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 年之前
父节点
当前提交
c21307f36b
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)
 	{
+		$sHtml = '';
 		if (count($this->a_dict_entries)>0)
 		{
-			$sHtml = "<script type=\"text/javascript\">\n";
+			$sHtml .= "<script type=\"text/javascript\">\n";
 			$sHtml .= "var Dict = {};\n";
 			$sHtml .= "Dict._entries = {};\n";
 			$sHtml .= "Dict.S = function(sEntry) {\n";