bugfix kalender user intern

This commit is contained in:
OpenXE 2023-06-26 09:56:01 +02:00
parent 63a99b1a6e
commit e125a29fa9

View File

@ -1148,7 +1148,7 @@ class Kalender {
// Force user if empty // Force user if empty
if ($data[0]['adresseintern'] == 0) { if ($data[0]['adresseintern'] == 0) {
$data[0]['adresseintern'] = $this->app->User->GetID(); $data[0]['adresseintern'] = $this->app->User->GetAdresse();
} }
$data[0]['adresseintern'] = $this->app->DB->Select("SELECT CONCAT(a.id,' ',a.name) FROM adresse a WHERE a.id='" . $data[0]['adresseintern'] . "' AND a.geloescht=0 LIMIT 1"); $data[0]['adresseintern'] = $this->app->DB->Select("SELECT CONCAT(a.id,' ',a.name) FROM adresse a WHERE a.id='" . $data[0]['adresseintern'] . "' AND a.geloescht=0 LIMIT 1");