humanmade / job-agency

Get the workers working!
15 stars 3 forks source link

Switch to maybe_unserialize in Job_Agency_Job class constructor #16

Closed emiliorcueto closed 10 years ago

emiliorcueto commented 10 years ago

Sometimes when using job-agency, we receive PHP notices expecting type string when unserializing the payload data. Switched to Wordpress maybe_unserialize.

An example string that triggers the notice is as follows: (PHP 5.4) a:3:{s:7:"user_id";i:1;s:7:"post_id";i:18800;s:8:"template";s:21:"experience_incomplete";}

danielbachhuber commented 10 years ago

Thanks @emiliorcueto !