소스 검색

#1251 Disabling log notification in config causes a fatal error

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4163 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 9 년 전
부모
커밋
e080cf7d8b
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      core/action.class.inc.php

+ 4 - 2
core/action.class.inc.php

@@ -262,8 +262,10 @@ class ActionEmail extends ActionNotification
 			{
 				$sPrefix = '';
 			}
-			$oLog->Set('message', $sPrefix.$sRes);
-
+			if ($oLog)
+			{
+				$oLog->Set('message', $sPrefix . $sRes);
+			}
 		}
 		catch (Exception $e)
 		{