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:
St John Karp 2018-10-10 17:59:10 -07:00
parent 3d1747e13e
commit 3d3f04ba90
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Links
|| strpos($query_param, 'since_id=') === 0) || strpos($query_param, 'since_id=') === 0)
{ {
# Construct new links with the correct offset. # Construct new links with the correct offset.
$this->$link['rel'] = route($route) . '?' . $query_param; $this->{$link['rel']} = route($route) . '?' . $query_param;
} }
} }
} }