Fix PHP7 evaluation order incompatibility

Fixes #1480
This commit is contained in:
Gerrit Uitslag 2016-03-02 21:48:37 +01:00
parent 2a83ac60f3
commit 6ebabe2fed
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ function rss_parseOptions() {
'content_type' => array('str', 'view', $conf['rss_media'])
) as $name => $val) {
$opt[$name] = $INPUT->$val[0]($val[1], $val[2], true);
$opt[$name] = $INPUT->{$val[0]}($val[1], $val[2], true);
}
$opt['items'] = max(0, (int) $opt['items']);