From 420755292b32049b9cb173d7a40ac336f418c465 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20Vysko=C4=8Dil?= <vyskocilpavel@muni.cz>
Date: Thu, 21 Nov 2019 12:45:23 +0100
Subject: [PATCH] Merge pull request #35 from melanger/patch-7

Fixed the bug in using double '$'
---
 CHANGELOG.md                         | 2 ++
 lib/Auth/Process/DatabaseCommand.php | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index aeac201..1ef578c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
 All notable changes to this project will be documented in this file.
 
 ## [Unreleased]
+#### Fixed
+- Fixed the bug in using double '$'
 
 ## [v3.2.0]
 #### Added
diff --git a/lib/Auth/Process/DatabaseCommand.php b/lib/Auth/Process/DatabaseCommand.php
index f10d797..f97fab8 100644
--- a/lib/Auth/Process/DatabaseCommand.php
+++ b/lib/Auth/Process/DatabaseCommand.php
@@ -72,11 +72,11 @@ class DatabaseCommand
         }
 
         if ($this->databaseConnector->getMode() === 'IDP') {
-            $idpName = $$this->databaseConnector->getIdpName();
-            $idpEntityID = $$this->databaseConnector->getIdpEntityId();
+            $idpName = $this->databaseConnector->getIdpName();
+            $idpEntityID = $this->databaseConnector->getIdpEntityId();
         } elseif ($this->databaseConnector->getMode() === 'SP') {
-            $spEntityId = $$this->databaseConnector->getSpEntityId();
-            $spName = $$this->databaseConnector->getSpName();
+            $spEntityId = $this->databaseConnector->getSpEntityId();
+            $spName = $this->databaseConnector->getSpName();
         }
 
         $year = $date->format('Y');
-- 
GitLab