check_for_update: fix typo which caused incorrect output of print_runtime_error() which caused RPC errors when DEFAULT_UPDATE_METHOD was set to SimplePie
This commit is contained in:
parent
d5ed5446d1
commit
63def06ca8
|
@ -3966,7 +3966,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
if (DEFAULT_UPDATE_INTERVAL == "1") {
|
if (DEFAULT_UPDATE_METHOD == "1") {
|
||||||
$rss = new SimplePie();
|
$rss = new SimplePie();
|
||||||
$rss->set_useragent(SIMPLEPIE_USERAGENT . MAGPIE_USER_AGENT_EXT);
|
$rss->set_useragent(SIMPLEPIE_USERAGENT . MAGPIE_USER_AGENT_EXT);
|
||||||
// $rss->set_timeout(MAGPIE_FETCH_TIME_OUT);
|
// $rss->set_timeout(MAGPIE_FETCH_TIME_OUT);
|
||||||
|
|
Loading…
Reference in New Issue