File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public function VersandartenEdit(): void
181181 $error[] = sprintf('Versandart "%s" existiert nicht.', $form['selmodul']); */
182182
183183 $ obj = $ this ->loadModule ($ form ['modul ' ], $ id );
184- $ module_errors = $ obj ->getErrors ();
184+ $ module_errors = $ obj? ->getErrors();
185185 foreach ($ module_errors as $ module_error ) {
186186 $ this ->app ->Tpl ->addMessage ('error ' , $ module_error );
187187 }
@@ -245,7 +245,7 @@ public function VersandartenEdit(): void
245245 $ this ->app ->Tpl ->Set ('AKTMODUL ' , $ daten ['modul ' ]);
246246
247247 $ obj = $ this ->loadModule ($ daten ['modul ' ], $ daten ['id ' ]);
248- $ module_errors = $ obj ->getErrors ();
248+ $ module_errors = $ obj? ->getErrors();
249249 foreach ($ module_errors as $ module_error ) {
250250 $ this ->app ->Tpl ->addMessage ('error ' , $ module_error );
251251 }
You can’t perform that action at this time.
0 commit comments