From 1ddf2b79af7bab3870776e5b67348171de636fe6 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sun, 5 Aug 2018 13:49:56 +0200
Subject: [PATCH] Fix incorrect use of 'self::'

---
 modules/core/lib/Storage/SQLPermanentStorage.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/core/lib/Storage/SQLPermanentStorage.php b/modules/core/lib/Storage/SQLPermanentStorage.php
index 8db457f66..516044fc1 100644
--- a/modules/core/lib/Storage/SQLPermanentStorage.php
+++ b/modules/core/lib/Storage/SQLPermanentStorage.php
@@ -98,7 +98,7 @@ class SQLPermanentStorage
 
     public function get($type = null, $key1 = null, $key2 = null)
     {
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT * FROM data WHERE '.$conditions;
 
         $prepared = $this->db->prepare($query);
@@ -137,7 +137,7 @@ class SQLPermanentStorage
 
     public function getList($type = null, $key1 = null, $key2 = null)
     {
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT * FROM data WHERE '.$conditions;
         $prepared = $this->db->prepare($query);
         $prepared->execute();
@@ -159,7 +159,7 @@ class SQLPermanentStorage
             throw new \Exception('Invalid key type');
         }
 
-        $conditions = self::getCondition($type, $key1, $key2);
+        $conditions = $this->getCondition($type, $key1, $key2);
         $query = 'SELECT DISTINCT :whichKey FROM data WHERE '.$conditions;
         $prepared = $this->db->prepare($query);
         $data = array('whichKey' => $whichKey);
-- 
GitLab