Browse Source

Decompiler: fix missing else with only 1 opcode

master
Xuefer 6 years ago
parent
commit
8a8428b9a8
  1. 2
      lib/Decompiler.class.php

2
lib/Decompiler.class.php

@ -1080,7 +1080,7 @@ class Decompiler
}
}
} while ($this->isIfCondition($range));
if ($ifRange[1] < $range[1]) {
if ($ifRange[1] <= $range[1]) {
$elseRange = array($ifRange[1], $range[1], 'EX' => &$EX);
echo $indent, 'else ', '{', PHP_EOL;
$this->beginScope($EX);

Loading…
Cancel
Save