diff --git a/modules/core/lib/Storage/SQLPermanentStorage.php b/modules/core/lib/Storage/SQLPermanentStorage.php index 4f4180b5f9d1a638af31d2379f7156eae851dd94..c2dfa053dfdec0516b40f0c5861390f1bda6cc9e 100644 --- a/modules/core/lib/Storage/SQLPermanentStorage.php +++ b/modules/core/lib/Storage/SQLPermanentStorage.php @@ -120,6 +120,15 @@ class sspmod_core_Storage_SQLPermanentStorage { return $res; } + /* + * Return the value directly (not in a container) + */ + public function getValue($type = NULL, $key1 = NULL, $key2 = NULL) { + $res = $this->get($type, $key1, $key2); + if ($res === NULL) return NULL; + return $res['value']; + } + public function exists($type, $key1, $key2) { $query = "SELECT * FROM data WHERE " . "key1 = '" . sqlite_escape_string($key1) . "' AND " .