Skip to content

Commit

Permalink
#299672 by fago: Cache form only if #cache is set to TRUE.
Browse files Browse the repository at this point in the history
  • Loading branch information
webchick committed Sep 20, 2008
1 parent 715255e commit 9c2e5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9c2e5a5

Please sign in to comment.