diff options
author | prashantsinalkar | 2017-03-07 17:01:46 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-03-07 17:01:46 +0530 |
commit | 21a66b7abe010b6508ce041c0ef7bc93c18ed9a6 (patch) | |
tree | e230505e1010ce9dccab5eff472856a167b30d43 | |
parent | 70645ac5f3ef10af5d08736fc006c2c80f4f418b (diff) | |
download | dwsim_flowsheet-21a66b7abe010b6508ce041c0ef7bc93c18ed9a6.tar.gz dwsim_flowsheet-21a66b7abe010b6508ce041c0ef7bc93c18ed9a6.tar.bz2 dwsim_flowsheet-21a66b7abe010b6508ce041c0ef7bc93c18ed9a6.zip |
fixed empty value issue
-rwxr-xr-x | upload_code.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/upload_code.inc b/upload_code.inc index 245b163..4d96eb5 100755 --- a/upload_code.inc +++ b/upload_code.inc @@ -16,12 +16,14 @@ function dwsim_flowsheet_abstract() $query->fields('dwsim_flowsheet_submitted_abstracts'); $query->condition('proposal_id', $proposal_data->id); $abstracts_q = $query->execute()->fetchObject(); + if($abstracts_q){ if ($abstracts_q->is_submitted == 1) { drupal_set_message(t('Your abstract is under review, you can not edit exisiting abstract without reviewer permission.'), 'error', $repeat = FALSE); //drupal_goto('flowsheeting-project/abstract-code'); //return; } //$abstracts_q->is_submitted == 1 + } $query_pro = db_select('dwsim_flowsheet_proposal'); $query_pro->fields('dwsim_flowsheet_proposal'); $query_pro->condition('id', $proposal_data->id); |