From 17846beda667a34682ed9c81c005d2a082bb773f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 21 Sep 2008 06:34:41 +0000 Subject: #299672 follow-up by chx: Better fix for only caching form if #cache is set to TRUE. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index bd7cb7ba6..1579d5cb9 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -934,7 +934,7 @@ function form_builder($form_id, $form, &$form_state) { // If some callback set #cache, we need to flip a static flag so later it // can be found. - if (isset($form['#cache']) && $form['#cache']) { + if (!empty($form['#cache'])) { $cache = $form['#cache']; } // We are on the top form, we can copy back #cache if it's set. -- cgit v1.2.3