Skip to content

Commit cfb4848

Browse files
committed
Fix: merge cells
1 parent 6dc1df3 commit cfb4848

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/excel.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ PHP_METHOD(vtiful_xls, autoFilter)
677677
}
678678
/* }}} */
679679

680-
/** {{{ \Vtiful\Kernel\Excel::mergeCells(string $range, string $data)
680+
/** {{{ \Vtiful\Kernel\Excel::mergeCells(string $range, string $data, $formatHandle = NULL)
681681
*/
682682
PHP_METHOD(vtiful_xls, mergeCells)
683683
{
@@ -699,11 +699,11 @@ PHP_METHOD(vtiful_xls, mergeCells)
699699

700700
WORKBOOK_NOT_INITIALIZED(obj);
701701

702-
if (argc == 3) {
702+
if (argc == 2) {
703703
merge_cells(range, data, &obj->write_ptr, obj->format_ptr.format);
704704
}
705705

706-
if (argc == 4) {
706+
if (argc == 3) {
707707
merge_cells(range, data, &obj->write_ptr, zval_get_format(format_handle));
708708
}
709709
}

0 commit comments

Comments
 (0)