소스 검색

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";
   $results = db_query($sql, array(':job_id' => $job_id));
   $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
   if ($job->end_time == 0) {
     tripal_launch_job(1, $job_id);