summaryrefslogtreecommitdiffstats
path: root/Horde_Core-upstream.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Horde_Core-upstream.patch')
-rw-r--r--Horde_Core-upstream.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/Horde_Core-upstream.patch b/Horde_Core-upstream.patch
new file mode 100644
index 0000000..5cc5fac
--- /dev/null
+++ b/Horde_Core-upstream.patch
@@ -0,0 +1,27 @@
+From 1ee4e8b255c80e7baab6072c29e5705820d8d5d4 Mon Sep 17 00:00:00 2001
+From: Michael M Slusarz <slusarz@horde.org>
+Date: Wed, 15 Oct 2014 13:41:27 -0600
+Subject: [PATCH] Hotfix: certain blocks (weather) don't throw Exceptions on
+ error
+
+They set enabled to false. Not sure how this is supposed to be fixed
+properly, but this prevents fatal errors
+---
+ framework/Core/lib/Horde/Core/Block/Layout/View.php | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/framework/Core/lib/Horde/Core/Block/Layout/View.php b/framework/Core/lib/Horde/Core/Block/Layout/View.php
+index eeaf551..4e92c98 100644
+--- a/framework/Core/lib/Horde/Core/Block/Layout/View.php
++++ b/framework/Core/lib/Horde/Core/Block/Layout/View.php
+@@ -79,6 +79,10 @@ public function toHtml()
+ $rowspan = $colspan = 1;
+ try {
+ $block = $bc->getBlock($item['app'], $item['params']['type2'], $item['params']['params']);
++
++ if (!$block->enabled) {
++ throw new Horde_Exception('Block not enabled.');
++ }
+ $rowspan = $item['height'];
+ $colspan = $item['width'];
+ for ($i = 0; $i < $item['height']; $i++) {