Skip to content

Commit

Permalink
Merge pull request #50 from dbollaer/patch-1
Browse files Browse the repository at this point in the history
Update src/Behat/Gherkin/Node/TableNode.php
  • Loading branch information
everzet committed Mar 1, 2013
2 parents eb0ce5c + 43c4385 commit 736a631
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Behat/Gherkin/Node/TableNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ protected function getMaxLengthForColumn($columnNum)
$max = 0;

foreach ($this->getRows() as $row) {
if (($tmp = mb_strlen($row[$columnNum])) > $max) {
$max = $tmp;
if(isset($row[$columnNum])){
if (($tmp = mb_strlen($row[$columnNum])) > $max) {
$max = $tmp;
}
}
}

Expand Down

0 comments on commit 736a631

Please sign in to comment.