tstaerk / mediasyntax

Mediasyntax is a plugin for Dokuwiki that enables Mediawiki syntax.
http://www.staerk.de/thorsten/Mediasyntax
GNU General Public License v2.0
10 stars 6 forks source link

Fix conversion of multiple tables #26

Closed ctrueden closed 4 years ago

ctrueden commented 4 years ago

When converting content with multiple tables, tables after the first fail to be processed correctly, resulting in the following fatal error:

Cannot use string offset as an array in .../dokuwiki2mediawiki.php:154

This happens because $cells is cleared to a string rather than being reset to NULL, so subsequent operations on $cells (e.g. count) then behave differently. The fix is to unset it rather than assigning to "".

tstaerk commented 4 years ago

explained so well that I first merge, then test 👍