Commit 086f3ab
committed
fix: handle userid=0 for team submissions in process_feedback_adhoc
core_user::get_user(0) returns false for group submissions; passing
false to setup_user(?stdClass) throws a TypeError in PHP 8. Convert
false to null and move setup_user inside try/finally for safe cleanup.1 parent cc17233 commit 086f3ab
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
0 commit comments