aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/Session.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-10-12 19:36:24 +0000
committerMario <mario@mariovavti.com>2022-10-12 19:36:24 +0000
commit71efb0565803018cb1ba362706c763714c596cf7 (patch)
tree508827af55db42365892e6064f0e009e5068567e /Zotlabs/Web/Session.php
parenta9a36894cb2637b546ed566ee06f20511cce031f (diff)
downloadvolse-hubzilla-71efb0565803018cb1ba362706c763714c596cf7.tar.gz
volse-hubzilla-71efb0565803018cb1ba362706c763714c596cf7.tar.bz2
volse-hubzilla-71efb0565803018cb1ba362706c763714c596cf7.zip
fix php warnings
Diffstat (limited to 'Zotlabs/Web/Session.php')
-rw-r--r--Zotlabs/Web/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php
index 443a02d20..14c054d20 100644
--- a/Zotlabs/Web/Session.php
+++ b/Zotlabs/Web/Session.php
@@ -203,7 +203,7 @@ class Session {
// first check if we're enforcing that sessions can't change IP address
// @todo what to do with IPv6 addresses
- if($_SESSION['addr'] && $_SESSION['addr'] != $_SERVER['REMOTE_ADDR']) {
+ if(isset($_SESSION['addr']) && $_SESSION['addr'] != $_SERVER['REMOTE_ADDR']) {
logger('SECURITY: Session IP address changed: ' . $_SESSION['addr'] . ' != ' . $_SERVER['REMOTE_ADDR']);
$partial1 = substr($_SESSION['addr'], 0, strrpos($_SESSION['addr'], '.'));