Skip to content
Snippets Groups Projects
Commit ed5d48c3 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed PHP8 warnings in lib/extern/extern.inc.php, fixes #1756

parent 053a1785
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ if ($range_id && $module) { ...@@ -75,7 +75,7 @@ if ($range_id && $module) {
exit; exit;
} }
if ($config_name) { if (!empty($config_name)) {
// check for valid configuration name and convert it into a config_id // check for valid configuration name and convert it into a config_id
if (!$config_id = ExternConfig::GetConfigurationByName($range_id, $type, $config_name)) { if (!$config_id = ExternConfig::GetConfigurationByName($range_id, $type, $config_name)) {
echo $GLOBALS['EXTERN_ERROR_MESSAGE']; echo $GLOBALS['EXTERN_ERROR_MESSAGE'];
...@@ -117,7 +117,7 @@ foreach ($GLOBALS['EXTERN_MODULE_TYPES'] as $type) { ...@@ -117,7 +117,7 @@ foreach ($GLOBALS['EXTERN_MODULE_TYPES'] as $type) {
} }
// Workaround to include data in scripts // Workaround to include data in scripts
if ($incdata) { if (!empty($incdata)) {
$module_obj->config->config["Main"]["incdata"] = 1; $module_obj->config->config["Main"]["incdata"] = 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment