Permalink
Browse files

{form } issue fix. Thanks to juzna. Closes #2

  • Loading branch information...
1 parent b51d8bd commit 7a9900630f226c889fe9c1cd584745a56b249d84 @foowie committed Mar 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 FormMacros.php
View
@@ -49,7 +49,7 @@ public static function macroFormBegin($content) {
return "Addons\Forms\FormMacros::formBegin($name, \$control, $modifiers)";
}
public static function formBegin($form, $control, $modifiers) {
- $form = ($form instanceof Form) ?: $control[$form];
+ $form = ($form instanceof Form) ? $form : $control[$form];
self::$stack = array($form);
self::applyModifiers($form->getElementPrototype(), $modifiers);
$form->render("begin");

0 comments on commit 7a99006

Please sign in to comment.