Decompiler: fix value2constant for NULL
This commit is contained in:
parent
8207e0771c
commit
7c3f8c2f53
|
@ -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…
Reference in New Issue