Skip to content

Commit 7cc9652

Browse files
committed
Bug-fix.
1 parent ad7f3fa commit 7cc9652

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Loader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,11 @@ public function __construct(
332332
if (is_array($this->IPAddr)) {
333333
$this->IPAddr = array_shift($this->IPAddr);
334334
}
335+
if (is_string($this->IPAddr) && ($Pos = strpos($this->IPAddr, ', ')) !== false) {
336+
$this->IPAddr = substr($this->IPAddr, 0, $Pos);
337+
}
335338
$this->IPAddr = (string)$this->IPAddr;
339+
unset($Pos);
336340

337341
/** Set timezone. */
338342
if (!empty($this->Configuration['core']['timezone']) && $this->Configuration['core']['timezone'] !== 'SYSTEM') {

0 commit comments

Comments
 (0)