fixed php warning on pages