浏览代码

Prevent a undefined varialbe when logging directly to a details page (bookmarked page)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2475 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
26e8b2f505
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/cmdbabstract.class.inc.php

+ 1 - 0
application/cmdbabstract.class.inc.php

@@ -201,6 +201,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
 		}
 	
 		$oPage->add("<div class=\"page_header\"><h1>".$this->GetIcon()."&nbsp;\n");
+		$sRefreshIcon = '';
 		if ($_SERVER['REQUEST_METHOD'] == 'GET')
 		{
 			$sRefreshIcon = '<img src="../images/reload.png" style="cursor:pointer;vertical-align:middle;margin-left:1em;" onclick="window.location.reload();" title="'.htmlentities(Dict::S('UI:Button:Refresh'), ENT_QUOTES, 'UTF-8').'"/>';