make dashboard compatible with old PHP