#299672 follow-up by chx: Better fix for only caching form if #cache is set to TRUE.

merge-requests/26/head
Angie Byron 2008-09-21 06:34:41 +00:00
parent a3bb66e4e8
commit 17846beda6
1 changed files with 1 additions and 1 deletions

View File

@ -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.