Display login url in contact form when not logged in
This commit is contained in:
committed by
WineHQ
parent
59923d626d
commit
bdbb708fcf
@@ -12,7 +12,8 @@ $oUser = new User($_SESSION['current']->iUserId);
|
|||||||
|
|
||||||
/* Restrict error to logged-in users */
|
/* Restrict error to logged-in users */
|
||||||
if(!$oUser->isLoggedIn())
|
if(!$oUser->isLoggedIn())
|
||||||
util_show_error_page_and_exit("You need to be logged in.");
|
util_show_error_page_and_exit("You need to be <a href=\"".login_url().
|
||||||
|
"\">logged in</a>.");
|
||||||
|
|
||||||
|
|
||||||
$oRecipient = new User($aClean['iRecipientId']);
|
$oRecipient = new User($aClean['iRecipientId']);
|
||||||
|
|||||||
Reference in New Issue
Block a user