MDL-63960 dataprivacy: Do not perform strict type checks for id
commitc083d1ad1e21c7599d10222cb134a725c4cb7232
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 9 Nov 2018 23:27:58 +0000 (10 07:27 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Sat, 10 Nov 2018 07:34:21 +0000 (10 15:34 +0800)
treedab864a619e38399f3969130eda358f984c6e7e2
parent35afa11801ca6ec0967894984d7912d2758472ea
MDL-63960 dataprivacy: Do not perform strict type checks for id

When inherit is specified in the data registry it is stored as a
string and we cannot perform a strict comparison with it.

We should still compare strict comparison checks against null, or false,
but not for the NOTSET (0) or INHERIT values (-1).
admin/tool/dataprivacy/classes/data_registry.php
admin/tool/dataprivacy/tests/api_test.php