mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 02:49:53 +01:00
MDL-83367 tasks: Apply trim() to pathtophp setting
- It fixes the problem that when "pathtophp" setting is stored with whitespaces, the "Run now" button will still show up in the tasks list, but the task will never run
This commit is contained in:
parent
52c0da7c64
commit
2698647bcd
@ -1492,7 +1492,7 @@ class manager {
|
||||
global $CFG;
|
||||
|
||||
if (!empty($CFG->pathtophp) && is_executable(trim($CFG->pathtophp))) {
|
||||
return $CFG->pathtophp;
|
||||
return trim($CFG->pathtophp);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user