Notwithstanding any other provision of this code, no community college district, or any officer or employee of such district or board shall be responsible or in any way liable for the conduct or safety of any student of the public schools at any time when such student is not in school property, unless such district has undertaken to provide transportation for such student to and from the school premises, has undertaken a school-sponsored activity off the premises of such school, has otherwise specifically assumed such responsibility or liability or has failed to exercise reasonable care under the circumstances.
In the event of such a specific undertaking, the district shall be liable or responsible for the conduct or safety of any student only while such student is or should be under the immediate and direct supervision of an employee of such district or board.