File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -426,15 +426,16 @@ function onAfterUpdate() {
426426 }
427427
428428 // lock and cancel
429- if (!isset ($ this ->dataRecord ['locked ' ])) $ this ->dataRecord ['locked ' ] = 'n ' ;
430- if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["locked " ] != $ this ->oldDataRecord ['locked ' ]) {
431- $ lock = functions::func_client_lock ($ this ->id ,$ this ->dataRecord ["locked " ]);
432- }
433-
434- if (!isset ($ this ->dataRecord ['canceled ' ])) $ this ->dataRecord ['canceled ' ] = 'n ' ;
435- if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["canceled " ] != $ this ->oldDataRecord ['canceled ' ]) {
436- $ cancel = functions::func_client_cancel ($ this ->id ,$ this ->dataRecord ["canceled " ]);
437- }
429+ if (!isset ($ this ->dataRecord ['locked ' ])) $ this ->dataRecord ['locked ' ] = 'n ' ;
430+ if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["locked " ] != $ this ->oldDataRecord ['locked ' ])
431+ {
432+ $ lock = $ app ->functions ->func_client_lock ($ this ->id ,$ this ->dataRecord ["locked " ]);
433+ }
434+
435+ if (!isset ($ this ->dataRecord ['canceled ' ])) $ this ->dataRecord ['canceled ' ] = 'n ' ;
436+ if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && $ this ->dataRecord ["canceled " ] != $ this ->oldDataRecord ['canceled ' ]) {
437+ $ cancel = $ app ->functions ->func_client_cancel ($ this ->id ,$ this ->dataRecord ["canceled " ]);
438+ }
438439
439440 // language changed
440441 if (isset ($ conf ['demo_mode ' ]) && $ conf ['demo_mode ' ] != true && isset ($ this ->dataRecord ['language ' ]) && $ this ->dataRecord ['language ' ] != '' && $ this ->oldDataRecord ['language ' ] != $ this ->dataRecord ['language ' ]) {
You can’t perform that action at this time.
0 commit comments