summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorprashantsinalkar2018-07-12 16:01:03 +0530
committerprashantsinalkar2018-07-12 16:01:03 +0530
commitda2a5ce881fc2a889f5ca1ba4588dad824c0598e (patch)
treef2893682c2a537f2fd9617d1c7a9f39680c6c03d /pdf
parent7dd782d535e2a9589210b71fb3aa8807e3e2add5 (diff)
downloadopenmodelica_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-xpdf/list_all_certificates.inc3
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