From da2a5ce881fc2a889f5ca1ba4588dad824c0598e Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 12 Jul 2018 16:01:03 +0530 Subject: fixed id issue --- pdf/list_all_certificates.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pdf') 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('You need to propose a book Book Proposal or if you have already proposed then your book is under reviewing process'), 'status'); return ''; } //$exist_id->id < 3 -- cgit