Fix non-array argument to array_diff(), fix nonexistent variable usage f...

...or queue marker value.