Browse Source

Merge branch '7.x-3.x' of https://github.com/tripal/tripal into 7.x-3.x

Lacey Sanderson 7 years ago
parent
commit
60000080c3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tripal/api/tripal.jobs.api.inc

+ 3 - 1
tripal/api/tripal.jobs.api.inc

@@ -380,7 +380,9 @@ function tripal_launch_job($do_parallel = 0, $job_id = NULL, $max_jobs = -1, $si
     ";
     $jobs = db_query($sql);
   }
-  print date('Y-m-d H:i:s') . ": There are " . $job_res->rowCount() . " jobs queued.\n";
+  if ($jobs) {
+    print date('Y-m-d H:i:s') . ": There are " . $jobs->rowCount() . " jobs queued.\n";
+  }
 
   foreach ($jobs as $jid) {