File fix-ZM_VERSION-already-defined-error.patch of Package ZoneMinder
From bd7136489e8566ff8e42f864fbb2a41adadda8b1 Mon Sep 17 00:00:00 2001
From: Dirk Hartmann <2monex@gmx.net>
Date: Sun, 18 May 2014 17:19:19 +0200
Subject: [PATCH 6/7] fix ZM_VERSION already defined error
use defined to check if a variable is already defined
---
web/includes/config.php.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/includes/config.php.in b/web/includes/config.php.in
index a2a89b224..b39e0b3ae 100644
--- a/web/includes/config.php.in
+++ b/web/includes/config.php.in
@@ -61,7 +61,9 @@ if ( is_dir($configSubFolder) ) {
# Now that our array our finalized, define each key => value
# pair in the array as a constant
foreach( $configvals as $key => $value) {
- define( $key, $value );
+ if ( !defined( $key ) ) {
+ define( $key, $value );
+ }
}
//
--
2.19.0