summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-21 06:34:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-21 06:34:41 +0000
commit17846beda667a34682ed9c81c005d2a082bb773f (patch)
treef931875d7416b77ff9d7aed8b4d11377725f6e4b
parenta3bb66e4e81817737ce02ce8f3d0cff5c32fdae9 (diff)
downloadbrdo-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.inc2
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.