bcit-ci/CodeIgniter — pull request #3304 by Shakespeare2000 (2014-11-02 10:33:19+00:00)
Title: https://github.com/bcit-ci/CodeIgniter/issues/3073 Fix write() for session_regenerate_id(TRUE)

Switching the if statements, because destroy() already removed the lock.
Pardon me if I messed up, this is my first commit & pull request ever... :|