Ver código fonte

Check for existing blastjob record added to get_recent_blast_jobs()

E.Cannon 7 anos atrás
pai
commit
95b28c9221
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      api/blast_ui.api.inc

+ 5 - 0
api/blast_ui.api.inc

@@ -101,6 +101,11 @@ function get_blast_database_options($type) {
 function get_BLAST_job($job_id) {
 
   $blastjob = db_query('SELECT * FROM blastjob WHERE job_id=:id', array(':id' => $job_id))->fetchObject();
+  
+  if (!$blastjob) {
+    return false;
+  }
+  
   $tripal_job = tripal_get_job($job_id);
 
   $job = new stdClass();