Merge pull request #4460 from JeroenDeDauw/rm-dead-assign

Remove dead assignment
This commit is contained in:
Sam Minnée 2015-08-03 14:48:33 +12:00
commit 4e8aa0c4f2

View File

@ -829,9 +829,6 @@ class Form extends RequestHandler {
public function getAttributesHTML($attrs = null) { public function getAttributesHTML($attrs = null) {
$exclude = (is_string($attrs)) ? func_get_args() : null; $exclude = (is_string($attrs)) ? func_get_args() : null;
if(!$attrs || is_string($attrs)) $attrs = $this->getAttributes();
// Figure out if we can cache this form // Figure out if we can cache this form
// - forms with validation shouldn't be cached, cos their error messages won't be shown // - forms with validation shouldn't be cached, cos their error messages won't be shown
// - forms with security tokens shouldn't be cached because security tokens expire // - forms with security tokens shouldn't be cached because security tokens expire