From 2a722dc53d587d7bd08c4b9f2df0e5b2f6d4104f Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Thu, 17 Jul 2014 11:42:18 +0530 Subject: fixed aicte_proposal page blank display --- textbook_companion.module | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/textbook_companion.module b/textbook_companion.module index 26aa4aa..8e6e34a 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -589,6 +589,7 @@ function textbook_companion_aicte_proposal_all() { global $user; if (!$user->uid) { drupal_set_message('It is mandatory to login on this website to access the proposal form', 'error'); + drupal_goto(""); return; } @@ -634,10 +635,10 @@ function textbook_companion_proposal_all() { global $user; $page_content = ""; - if (!$user->uid) { - drupal_set_message('It is mandatory to login on this website to access the proposal form', 'error'); - return; - } + // if (!$user->uid) { + // drupal_set_message('It is mandatory to login on this website to access the proposal form', 'error'); + // return; + // } /* check if user has already submitted a proposal */ $proposal_q = db_query("SELECT * FROM {textbook_companion_proposal} WHERE uid = %d ORDER BY id DESC LIMIT 1", $user->uid); -- cgit