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

SVN:trunk[2475]
This commit is contained in:
Denis Flaven
2012-11-28 09:04:28 +00:00
parent e0800944a8
commit b3b19bcaf6

View File

@@ -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').'"/>';