blob: e8d81fccd178e6135ef1422226d17b8ebca69413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From 9bed1cdc08787ae2087ce7d20425fe0503645fe7 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 18 Nov 2019 15:03:00 +0100
Subject: [PATCH] Fix Trying to access array offset on value of type null
---
lib/Horde/Core/Tagger.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Horde/Core/Tagger.php b/lib/Horde/Core/Tagger.php
index c76306da..fd0d567f 100644
--- a/lib/Horde/Core/Tagger.php
+++ b/lib/Horde/Core/Tagger.php
@@ -69,7 +69,7 @@ public function __construct()
$types = $injector->getInstance('Content_Types_Manager')
->ensureTypes($this->_types);
foreach ($this->_types as $k => $v) {
- $this->_type_ids[$v] = intval($types[$k]);
+ $this->_type_ids[$v] = intval($types ? $types[$k] : 0);
}
$cache->set($key, serialize($this->_type_ids));
}
|