MDL-67054 upgrade: prevent potential PHP notice
commit25676441b346544581ce64ba590f40f0ce4a1503
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 29 Oct 2019 16:14:12 +0000 (29 17:14 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 29 Oct 2019 22:27:26 +0000 (29 23:27 +0100)
tree683895736328fb680a8f95acc9a10cfaf13c4aac
parentd7699706da7f438008c2137c5fb71826d1e22c1e
MDL-67054 upgrade: prevent potential PHP notice

In some sites $CFG->requestcategoryselection may be not defined.

So this just wraps the use within empty, keeping the spirit intact,
aka, invert whatever the precious setting was storing.

null, 0, false, '0' => 1
1, true, '1' => 0
lib/db/upgrade.php