Avoid a notice
Adding helperfunction getConstantValue and getSessionValue, fixing some spaces before and after the = sign