Thats ridiculous. Dont let some idiotic, unenforceable law to stop you from taking photographs. I've lived and photographed in the city my whole life and have never had a problem. Its also illegal to lean against the subway doors, but have you ridden the subway lately?