fixed Use of undefined constant php warning messages
small fixes