diff options
author | Sashi20 | 2017-07-18 15:58:23 +0530 |
---|---|---|
committer | Sashi20 | 2017-07-18 15:58:23 +0530 |
commit | 70778ca8cd0847ef09dc32f418520edc56a4ff70 (patch) | |
tree | 89dcbf5b31956c795f5afd5c152f5676cc0664fb /pdf/cert_new.inc | |
parent | 949c7db99df83dcd18f2e8d9724b40662523aba5 (diff) | |
download | dwsim_flowsheet-70778ca8cd0847ef09dc32f418520edc56a4ff70.tar.gz dwsim_flowsheet-70778ca8cd0847ef09dc32f418520edc56a4ff70.tar.bz2 dwsim_flowsheet-70778ca8cd0847ef09dc32f418520edc56a4ff70.zip |
Minor changes
Diffstat (limited to 'pdf/cert_new.inc')
-rwxr-xr-x | pdf/cert_new.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc index 609e4d7..701e8ba 100755 --- a/pdf/cert_new.inc +++ b/pdf/cert_new.inc @@ -7,14 +7,15 @@ function generate_pdf() global $user; $x = $user->uid; $proposal_id = arg(3); - $query2 = db_query("SELECT id FROM dwsim_flowsheet_proposal WHERE approval_status=3 AND uid= :uid", array( - ':uid' => $user->uid + $query3 = db_query("SELECT * FROM dwsim_flowsheet_proposal WHERE approval_status=3 AND uid= :uid AND id=:proposal_id", array( + ':uid' => $user->uid, + ':proposal_id'=>$proposal_id )); - $data2 = $query2->fetchObject(); - $query3 = db_query("SELECT * FROM dwsim_flowsheet_proposal WHERE approval_status=3 AND uid= :uid", array( + $data3 = $query3->fetchObject(); + /*$query3 = db_query("SELECT * FROM dwsim_flowsheet_proposal WHERE approval_status=3 AND uid= :uid", array( ':uid' => $user->uid )); - $data3 = $query3->fetchObject(); + $data3 = $query3->fetchObject();*/ if($data3){ if($data3->uid != $x){ drupal_set_message('Certificate is not available','error'); |