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 @@ -468,13 +468,13 @@ function onAfterUpdate() {
468468 }
469469
470470 // lock and cancel
471- if (!isset ($ this ->dataRecord ['locked ' ])) $ this ->dataRecord ['locked ' ] = 'n ' ;
471+ if (!isset ($ this ->dataRecord ['locked ' ]) && isset ( $ this -> dataRecord [ ' username ' ]) ) $ this ->dataRecord ['locked ' ] = 'n ' ;
472472 if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["locked " ] != $ this ->oldDataRecord ['locked ' ])
473473 {
474474 $ lock = $ app ->functions ->func_client_lock ($ this ->id ,$ this ->dataRecord ["locked " ]);
475475 }
476476
477- if (!isset ($ this ->dataRecord ['canceled ' ])) $ this ->dataRecord ['canceled ' ] = 'n ' ;
477+ if (!isset ($ this ->dataRecord ['canceled ' ]) && isset ( $ this -> dataRecord [ ' username ' ]) ) $ this ->dataRecord ['canceled ' ] = 'n ' ;
478478 if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["canceled " ] != $ this ->oldDataRecord ['canceled ' ]) {
479479 $ cancel = $ app ->functions ->func_client_cancel ($ this ->id ,$ this ->dataRecord ["canceled " ]);
480480 }
You can’t perform that action at this time.
0 commit comments