Skip to content

Commit 4e2536a

Browse files
authored
Update EASYTABLES.php
Syntax
1 parent 24630ce commit 4e2536a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

samples/EASYTABLES.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ function WordTableText($text=null)
296296
static $Row=0;
297297
static $Col=0;
298298
if($text===null) return $TextArray;//Return the array.
299-
if($text===row) {if(!empty($TheArray))$Row++;$Col=0;return;}//Start new row
299+
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
300301
if(is_array($text))
301302
{
302303
$text=array_filter($text,function($line){return trim($line)!=='';});

0 commit comments

Comments
 (0)