Skip to content

Commit 41f1f92

Browse files
committed
silence a warning on Form::close()
1 parent 68abfb6 commit 41f1f92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PFBC/Form.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,11 @@ public function __call ($type, $props) {
519519
}
520520

521521
public static function __callStatic ($type, $props) {
522-
if ($type == 'close')
522+
if ($type == 'close') {
523+
if (!isset ($props[0]))
524+
$props[0] = 1;
523525
return self::$form->_close ($props[0]);
526+
}
524527
return self::_call (self::$form, $type, $props);
525528
}
526529

0 commit comments

Comments
 (0)