Fixed debug->log

In lhdesign.php class, it was outside the if control.