mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Fix issue processwire/processwire-issues#1247
This commit is contained in:
@@ -572,7 +572,7 @@ class WireInput extends Wire {
|
||||
|
||||
if($get < 0) {
|
||||
// retrieve from end
|
||||
$get = abs($get);
|
||||
$get = abs($get)-1;
|
||||
$urlSegments = array_reverse($this->urlSegments);
|
||||
return isset($urlSegments[$get]) ? $urlSegments[$get] : '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user