From a0fcbfe6afb2567da747c3f35536ff0a1addedef Mon Sep 17 00:00:00 2001 From: wangyuting Date: Wed, 11 Jun 2025 09:06:33 +0000 Subject: [PATCH] * [bug#63250,done,0.1h,0h] Adjust to cleanInt(). --- module/tree/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tree/model.php b/module/tree/model.php index 20f8917b2d..ff4f3f339a 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1968,7 +1968,7 @@ class treeModel extends model */ public function update(int $moduleID, string $type = ''): bool { - $module = fixer::input('post')->setIF(empty($_POST['branch']), 'branch', 0)->get(); + $module = fixer::input('post')->cleanInt('branch')->get(); $self = $this->getById($moduleID); $changes = common::createChanges($self, $module); if(!isset($_POST['branch'])) $module->branch = $self->branch;