Update worker.class.php

Fix for issue #957
Update error_codes.inc.php

Fix to issue #957
Update worker.class.php

Fix for issue #957
Update worker.class.php

[UPDATE] Fix for issue #957
Update worker.class.php

Cleaned up code
Cleanup code for update/add
Actually fixing the code this time?
Merge pull request #1031 from xisi/patch-2

[UPDATE] Fix for issue #957