some cleaning of basic php stuff

Removed function that was giving errors after enabling modules.