Browse Source

Decompiler/dump: fix undefined vars

master
Xuefer 5 years ago
parent
commit
0feb144366
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/Decompiler.class.php

+ 2
- 2
lib/Decompiler.class.php View File

@ -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