Преглед на файлове

fetch object doesn't have row count method

Abdullah Almsaeed преди 8 години
родител
ревизия
5a52f079ef
променени са 1 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 1 7
      tripal_core/api/tripal_core.jobs.api.inc

+ 1 - 7
tripal_core/api/tripal_core.jobs.api.inc

@@ -290,13 +290,7 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
   $sql = "SELECT * FROM {tripal_jobs} WHERE job_id = :job_id";
   $sql = "SELECT * FROM {tripal_jobs} WHERE job_id = :job_id";
   $results = db_query($sql, array(':job_id' => $job_id));
   $results = db_query($sql, array(':job_id' => $job_id));
   $job = $results->fetchObject();
   $job = $results->fetchObject();
-
-  // Check if the job exists
-  if($job->rowCount() <= 0) {
-    drupal_set_message(t("Job %job_id does not exist in our records.", array('%job_id' => $job_id)));
-    return;
-  }
-
+  
   // set the end time for this job
   // set the end time for this job
   if ($job->end_time == 0) {
   if ($job->end_time == 0) {
     tripal_launch_job(1, $job_id);
     tripal_launch_job(1, $job_id);