Skip to content

Commit

Permalink
Fixes a protected variable access from the PHP_evaluator class
Browse files Browse the repository at this point in the history
  • Loading branch information
PhenX committed Dec 30, 2012
1 parent dfb7104 commit a3fc700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/php_evaluator.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ function __construct(Canvas $canvas) {
}

function evaluate($code, $vars = array()) {
if ( !$this->_canvas->_dompdf->get_option("enable_php") )
if ( !$this->_canvas->get_dompdf()->get_option("enable_php") ) {
return;
}

// Set up some variables for the inline code
$pdf = $this->_canvas;
Expand Down

0 comments on commit a3fc700

Please sign in to comment.