We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfa3a1 commit ae339caCopy full SHA for ae339ca
wwwroot/Application/Admin/Controller/AddonsController.class.php
@@ -577,16 +577,20 @@ public function updateHook(){
577
if($data){
578
if($data['id']){
579
$flag = $hookModel->save($data);
580
- if($flag !== false)
+ if($flag !== false){
581
+ S('hooks', null);
582
$this->success('更新成功', Cookie('__forward__'));
- else
583
+ }else{
584
$this->error('更新失败');
585
+ }
586
}else{
587
$flag = $hookModel->add($data);
- if($flag)
588
+ if($flag){
589
590
$this->success('新增成功', Cookie('__forward__'));
591
592
$this->error('新增失败');
593
594
}
595
596
$this->error($hookModel->getError());
0 commit comments