mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 22:05:20 +03:00
This was upgraded from a warning to an error in php 8.
This commit is contained in:
parent
2bbce8ebef
commit
eef45d4e8d
1 changed files with 4 additions and 0 deletions
|
@ -121,6 +121,10 @@ class IvooxBridge extends BridgeAbstract
|
||||||
foreach ($originalLocales as $localeSetting) {
|
foreach ($originalLocales as $localeSetting) {
|
||||||
if (strpos($localeSetting, '=') !== false) {
|
if (strpos($localeSetting, '=') !== false) {
|
||||||
[$category, $locale] = explode('=', $localeSetting);
|
[$category, $locale] = explode('=', $localeSetting);
|
||||||
|
if (! defined($category)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$category = constant($category);
|
||||||
} else {
|
} else {
|
||||||
$category = LC_ALL;
|
$category = LC_ALL;
|
||||||
$locale = $localeSetting;
|
$locale = $localeSetting;
|
||||||
|
|
Loading…
Add table
Reference in a new issue