diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-20 16:10:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-20 16:10:29 +0000 |
commit | 9c2e5a52c9762dacb97789226c2ee4065d1e18e9 (patch) | |
tree | 72cf825c5573b82f90e4306fdec7a37818a7772e | |
parent | 715255eab79eaa335298ab27a02521b5351bcfce (diff) | |
download | brdo-9c2e5a52c9762dacb97789226c2ee4065d1e18e9.tar.gz brdo-9c2e5a52c9762dacb97789226c2ee4065d1e18e9.tar.bz2 |
#299672 by fago: Cache form only 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 06482c230..3c64b0dc4 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'])) { + if (isset($form['#cache']) && $form['#cache']) { $cache = $form['#cache']; } // We are on the top form, we can copy back #cache if it's set. |