summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-05 15:35:48 +0300
committerAndrew Dolgov <[email protected]>2021-03-05 15:35:48 +0300
commitecb94ec23d52f628e2dcd8a20b56e6608d568608 (patch)
tree685f5c7ecf493c0c5e8917062845e9d4efe737fc /include
parent5c1f9f31bdb6418469c3434047c163b4dae8f139 (diff)
login page: fix a warning if return is unset
Diffstat (limited to 'include')
-rwxr-xr-xinclude/login_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/login_form.php b/include/login_form.php
index be6734d07..9efe0e238 100755
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -85,7 +85,7 @@
</script>
-<?php $return = urlencode($_REQUEST['return'] ? $_REQUEST['return'] : with_trailing_slash(Config::make_self_url())) ?>
+<?php $return = urlencode(!empty($_REQUEST['return']) ? $_REQUEST['return'] : with_trailing_slash(Config::make_self_url())) ?>
<div class="container">