From e9e019d59c53aadb875aef7df26e3cbcd7c006e8 Mon Sep 17 00:00:00 2001
From: Adrien <af@brain-networks.fr>
Date: Mon, 31 Dec 2018 16:50:45 +0100
Subject: [PATCH] config var interpolation
 https://wiki.php.net/rfc/uniform_variable_syntax

---
 config.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.php b/config.php
index e835cce53..f7c45f436 100644
--- a/config.php
+++ b/config.php
@@ -30,15 +30,15 @@ class VtigerConfig {
 
 	static function get($key, $defvalue='') {
 		if (self::has($key)) {
-			global $$key;
-			return $$key;
+			global ${$key};
+			return ${$key};
 		}
 		return $defvalue;
 	}
 
 	static function has($key) {
-		global $$key;
-		return (isset($$key));
+		global ${$key};
+		return (isset(${$key}));
 	}
 
 	static function getOD($key, $defvalue='') {
-- 
GitLab