Elgg/Elgg — pull request #6175 by jdalsem (2013-10-23 13:54:29+00:00)
Title: prevent php notice when current_gen is not an array for array_key_exists

also applies for 1.9