diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-21 06:34:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-21 06:34:41 +0000 |
commit | 17846beda667a34682ed9c81c005d2a082bb773f (patch) | |
tree | f931875d7416b77ff9d7aed8b4d11377725f6e4b | |
parent | a3bb66e4e81817737ce02ce8f3d0cff5c32fdae9 (diff) | |
download | brdo-17846beda667a34682ed9c81c005d2a082bb773f.tar.gz brdo-17846beda667a34682ed9c81c005d2a082bb773f.tar.bz2 |
#299672 follow-up by chx: Better fix for only caching form if #cache is set to TRUE.
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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. |