--- job_queue.module	2008-08-18 03:35:59.000000000 -0400
+++ job_queue_fix_t_objects.module	2009-08-12 22:10:03.838312323 -0400
@@ -106,7 +106,9 @@ function job_queue_dequeue() {
   if (function_exists($job->function)) {
     $arguments = unserialize($job->arguments);
     call_user_func_array($job->function, $arguments);
-    watchdog('job_queue', 'Ran queued job "!description"', array('!description' => t($job->description, $arguments)));
+    //Filter objects out of arguments
+    $arguments_filtered = array_filter(unserialize($arguments), 'is_scalar');
+    watchdog('job_queue', 'Ran queued job "!description"', array('!description' => t($job->description, $arguments_filtered)));
   }
   else {
     watchdog('job_queue', 'Failed to run queued job "!description" because the function %function is not defined.', array('!description' => $job->description, '%function' => $job->function), WATCHDOG_ERROR);
@@ -142,9 +144,11 @@ function job_queue_list() {
     $result = pager_query('SELECT created, description, arguments FROM {job_queue} ORDER BY priority, jqid', 20);
     $rows = array();
     while ($job = db_fetch_object($result)) {
+      //Filter objects out of arguments
+      $arguments = array_filter(unserialize($job->arguments), 'is_scalar');
       $rows[] = array(
         format_date($job->created),
-        t($job->description, unserialize($job->arguments)),
+        t($job->description, $arguments),
       );
     }
     $output .= theme('table', $header, $rows);
