Permalink
Browse files

updating extract() to no assign (skip) if the value already exists

  • Loading branch information...
1 parent bf5ae8c commit c7ffc06779974b60c2671f739934df00cbd8ffc6 @enygma committed Nov 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Shield/View.php
View
@@ -206,7 +206,7 @@ public function render($template)
// scope in the tempate extraction
$result = function($file,array $data=array()) {
ob_start();
- extract($data);
+ extract($data, EXTR_SKIP);
try {
include $file;
} catch(\Exception $e) {

0 comments on commit c7ffc06

Please sign in to comment.