mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
fix PHP 8.0 ValueError: Path cannot be empty
and other IDE errors
This commit is contained in:
parent
ba5c7fdf17
commit
9409649684
@ -62,7 +62,7 @@ use EGroupware\Api\Etemplate;
|
|||||||
{
|
{
|
||||||
Api\Translation::add_app($appname);
|
Api\Translation::add_app($appname);
|
||||||
}
|
}
|
||||||
if($content['import'] && $definition) {
|
if ($content['import'] && $definition && !empty($content['file']) && file_exists($content['file']['tmp_name'])) {
|
||||||
try {
|
try {
|
||||||
if($content['dry-run']) {
|
if($content['dry-run']) {
|
||||||
// Set this so plugin doesn't do any data changes
|
// Set this so plugin doesn't do any data changes
|
||||||
@ -200,7 +200,7 @@ use EGroupware\Api\Etemplate;
|
|||||||
}
|
}
|
||||||
elseif($content['cancel'])
|
elseif($content['cancel'])
|
||||||
{
|
{
|
||||||
egw_framework::set_onload('window.close();');
|
Api\Framework::window_close();
|
||||||
}
|
}
|
||||||
elseif ($GLOBALS['egw_info']['user']['apps']['admin'])
|
elseif ($GLOBALS['egw_info']['user']['apps']['admin'])
|
||||||
{
|
{
|
||||||
@ -358,7 +358,7 @@ use EGroupware\Api\Etemplate;
|
|||||||
foreach($plugin->get_errors() as $record => $message) {
|
foreach($plugin->get_errors() as $record => $message) {
|
||||||
$this->message .= "<br />\n$record: $message";
|
$this->message .= "<br />\n$record: $message";
|
||||||
}
|
}
|
||||||
if($count != $total_processed) $this->message .= "<br />\n".lang('Some records may not have been imported');
|
$this->message .= "<br />\n".lang('Some records may not have been imported');
|
||||||
$this->message .= "<br />\n";
|
$this->message .= "<br />\n";
|
||||||
}
|
}
|
||||||
return '<div class="header">' . lang('Preview') . ' - ' . $plugin->get_name() . '</div>' . $preview;
|
return '<div class="header">' . lang('Preview') . ' - ' . $plugin->get_name() . '</div>' . $preview;
|
||||||
|
Loading…
Reference in New Issue
Block a user