Fixed issue #9262: PHP warning on DB upgrade: reset() expects parameter 1 to be array, string given