Browse Source

Decompiler/dump: fix undefined vars

master
Xuefer 6 years ago
parent
commit
0feb144366
  1. 4
      lib/Decompiler.class.php

4
lib/Decompiler.class.php

@ -848,9 +848,9 @@ class Decompiler
return $ret;
case XC_IS_CV:
$vars = &$this->EX['op_array']['vars'];
$var = $op['var'];
$var = $this->EX['op_array']['vars'][$var];
return '$' . $var['name'];
return isset($vars[$var]) ? '$' . $vars[$var]['name'] : '$?';
case XC_IS_UNUSED:
return null;

Loading…
Cancel
Save