Skip to content

Commit

Permalink
Merge pull request #20 from znframework/5.8
Browse files Browse the repository at this point in the history
Fixed OutputElements::__toString() method.
  • Loading branch information
ozanuykun committed Aug 26, 2018
2 parents 6594aef + ba2d1ed commit 1ea6e43
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions OutputElements.php
Expand Up @@ -26,15 +26,20 @@ trait OutputElements
*/
public function __toString()
{
if( $outputElement = ($this->outputElement ?? NULL) )
if( $outputElement = $this->outputElement )
{
$this->outputElement = NULL;

return $outputElement;
}
elseif( $this->getBootstrapGridsystem() )
{
return $this->createBootstrapGridsystem();
if( is_string($return = $this->createBootstrapGridsystem()) )
{
return $return;
}
}

return '';
}
}

0 comments on commit 1ea6e43

Please sign in to comment.