Fixing php warning + showing the work - documents