From 96ecfe86b53d97b621885567c881296a24ef508b Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Fri, 27 Jun 2008 07:18:40 +0000
Subject: [PATCH] It turns out that constant('CONSTANT_NAME') emits an warning.
 Change the test to use defined('CONSTANT_NAME') instead.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@720 44740490-163a-0410-bde0-09ae8108e29a
---
 config-templates/config.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-templates/config.php b/config-templates/config.php
index 8cad51e03..e0f08ce74 100644
--- a/config-templates/config.php
+++ b/config-templates/config.php
@@ -102,7 +102,7 @@ $config = array (
 	 *
 	 * The default is to use LOG_LOCAL5 if available, and fall back to LOG_USER if not.
 	 */
-	'logging.facility' => (constant('LOG_LOCAL5') !== NULL) ? constant('LOG_LOCAL5') : LOG_USER,
+	'logging.facility' => defined('LOG_LOCAL5') ? constant('LOG_LOCAL5') : LOG_USER,
 
 	/* Logging: file - Logfilename in the loggingdir from above.
 	 */
-- 
GitLab