diff options
author | prashantsinalkar | 2018-07-12 16:01:03 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-07-12 16:01:03 +0530 |
commit | da2a5ce881fc2a889f5ca1ba4588dad824c0598e (patch) | |
tree | f2893682c2a537f2fd9617d1c7a9f39680c6c03d /pdf | |
parent | 7dd782d535e2a9589210b71fb3aa8807e3e2add5 (diff) | |
download | openmodelica_textbook_companion-da2a5ce881fc2a889f5ca1ba4588dad824c0598e.tar.gz openmodelica_textbook_companion-da2a5ce881fc2a889f5ca1ba4588dad824c0598e.tar.bz2 openmodelica_textbook_companion-da2a5ce881fc2a889f5ca1ba4588dad824c0598e.zip |
fixed id issue
Diffstat (limited to 'pdf')
-rwxr-xr-x | pdf/list_all_certificates.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf/list_all_certificates.inc b/pdf/list_all_certificates.inc index b6418a7..137c024 100755 --- a/pdf/list_all_certificates.inc +++ b/pdf/list_all_certificates.inc @@ -6,9 +6,10 @@ function _list_all_certificates() ':uid' => $user->uid )); $exist_id = $query_id->fetchObject(); + $exist_id_count = $query_id->rowCount(); if ($exist_id){ if ($exist_id->id) { - if ($exist_id->id < 3) { + if ($exist_id_count < 1 ) { drupal_set_message(t('<strong>You need to propose a book <a href="http://om.fossee.in/textbook-companion/proposal">Book Proposal</a></strong> or if you have already proposed then your book is under reviewing process'), 'status'); return ''; } //$exist_id->id < 3 |