Permalink
Browse files

Fixes a protected variable access from the PHP_evaluator class

  • Loading branch information...
1 parent dfb7104 commit a3fc70015a9cd85460d79110c9e1b3499be5e473 @PhenX PhenX committed Dec 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 include/php_evaluator.cls.php
@@ -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;

0 comments on commit a3fc700

Please sign in to comment.