Browse Source

Decompiler: fix value2constant for NULL

master
Xuefer 6 years ago
parent
commit
7c3f8c2f53
  1. 2
      lib/Decompiler.class.php

2
lib/Decompiler.class.php

@ -179,7 +179,7 @@ function value($value) // {{{
$value = new Decompiler_ConstArray($decompiler, $value);
}
else {
if (($constant = $decompiler->value2constant($value)) && isset($constant)) {
if (is_scalar($value) && ($constant = $decompiler->value2constant($value)) && isset($constant)) {
$value = new Decompiler_Code($decompiler, $constant);
}
else {

Loading…
Cancel
Save