mirror of https://git.stjo.hn/planiverse
Fix bug in accessing a property using a variable
Wrapped the variable in curly braces to force it to evaluate before trying to access the property.
This commit is contained in:
parent
3d1747e13e
commit
3d3f04ba90
|
@ -39,7 +39,7 @@ class Links
|
|||
|| strpos($query_param, 'since_id=') === 0)
|
||||
{
|
||||
# Construct new links with the correct offset.
|
||||
$this->$link['rel'] = route($route) . '?' . $query_param;
|
||||
$this->{$link['rel']} = route($route) . '?' . $query_param;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue