summaryrefslogtreecommitdiff
path: root/include/functions2.php
diff options
context:
space:
mode:
authorJustAMacUser <[email protected]>2015-08-13 20:46:45 -0400
committerJustAMacUser <[email protected]>2015-08-14 19:42:30 -0400
commit8493163576feed8a978a6525d6d4567d2ed2cc4c (patch)
treecf41b2a991d7536804bbb2575eed7c19af1a1f64 /include/functions2.php
parent28539f6aafba872c5ca4ab3266357664b8b39a6b (diff)
Unset $retval after HOOK_FORMAT_ENCLOSURES.
Fixes an edge case where changing the array of enclosures with HOOK_FORMAT_ENCLOSURES might break the dropdown rendering if HOOK_RENDER_ENCLOSURE has no registered hooks.
Diffstat (limited to 'include/functions2.php')
-rw-r--r--include/functions2.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php
index b4018453e..445e9e022 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -1890,6 +1890,7 @@
$rv = $retval;
}
}
+ unset($retval); // Unset to prevent breaking render if there are no HOOK_RENDER_ENCLOSURE hooks below.
if ($rv === '' && !empty($result)) {
$entries_html = array();