Skip to content

Commit 3ff1c33

Browse files
committed
fix(formanswer): php warning undefined var
1 parent e0ef0d3 commit 3ff1c33

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

inc/formanswer.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,7 @@ public function post_addItem() {
12901290

12911291
// Auto approve if the current user is a level 1 validator
12921292
$current_user = Session::getLoginUserID();
1293+
$auto_approval = false;
12931294
if (($this->input['users_id_validator'] ?? 0) != 0) {
12941295
$auto_approval = ($current_user == $this->input['users_id_validator']);
12951296
} else if (($this->input['groups_id_validator'] ?? 0) != 0) {

0 commit comments

Comments
 (0)