There was an error while loading. Please reload this page.
1 parent 24630ce commit 4e2536aCopy full SHA for 4e2536a
1 file changed
samples/EASYTABLES.php
@@ -296,7 +296,8 @@ function WordTableText($text=null)
296
static $Row=0;
297
static $Col=0;
298
if($text===null) return $TextArray;//Return the array.
299
-if($text===row) {if(!empty($TheArray))$Row++;$Col=0;return;}//Start new row
+if($text===row) if(empty($TextArray))return; //Start new row on on empty array. No go
300
+if($text===row) {$Row++;$Col=0;return;}//Start new row
301
if(is_array($text))
302
{
303
$text=array_filter($text,function($line){return trim($line)!=='';});
0 commit comments