An ampersand may be required:
array_merge(array(&$stmt1, $type), $messagesToUpdate));
but I have no way of knowing.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity
." Me Myself & Irene
Validate your HTML