From 8493163576feed8a978a6525d6d4567d2ed2cc4c Mon Sep 17 00:00:00 2001 From: JustAMacUser Date: Thu, 13 Aug 2015 20:46:45 -0400 Subject: [PATCH] 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. --- include/functions2.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions2.php b/include/functions2.php index b4018453..445e9e02 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(); -- 2.39.2