diff options
author | Jayaram R Pai | 2014-07-17 11:42:18 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-07-17 11:42:18 +0530 |
commit | 2a722dc53d587d7bd08c4b9f2df0e5b2f6d4104f (patch) | |
tree | 3816ef3f1b55c360ae427b9bebba95d860aa067e | |
parent | b31cf3a933222afcafe0c9e9ada387c5a8c20dc5 (diff) | |
download | scilab_textbook_companion-2a722dc53d587d7bd08c4b9f2df0e5b2f6d4104f.tar.gz scilab_textbook_companion-2a722dc53d587d7bd08c4b9f2df0e5b2f6d4104f.tar.bz2 scilab_textbook_companion-2a722dc53d587d7bd08c4b9f2df0e5b2f6d4104f.zip |
fixed aicte_proposal page blank display
-rwxr-xr-x | textbook_companion.module | 9 |
1 files 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); |