Mercurial > defr > drupal > core
diff modules/poll/poll.module @ 9:acef7ccb09b5 6.4
Drupal 6.4
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:08 +0100 |
parents | fff6d4c8c043 |
children | 3edae6ecd6c6 |
line wrap: on
line diff
--- a/modules/poll/poll.module Tue Dec 23 14:30:28 2008 +0100 +++ b/modules/poll/poll.module Tue Dec 23 14:32:08 2008 +0100 @@ -1,5 +1,5 @@ <?php -// $Id: poll.module,v 1.263.2.1 2008/04/25 20:39:55 goba Exp $ +// $Id: poll.module,v 1.263.2.2 2008/08/13 23:59:13 drumm Exp $ /** * @file @@ -338,7 +338,9 @@ // Add the new element to the stored form. Without adding the element to the // form, Drupal is not aware of this new elements existence and will not // process it. We retreive the cached form, add the element, and resave. - $form = form_get_cache($form_build_id, $form_state); + if (!$form = form_get_cache($form_build_id, $form_state)) { + exit(); + } $form['choice_wrapper']['choice'][$delta] = $form_element; form_set_cache($form_build_id, $form, $form_state); $form += array(