MDL-57531 mail: Make validate_email return actual boolean as expected
authorDavid Mudrák <david@moodle.com>
Wed, 4 Jan 2017 12:13:31 +0000 (13:13 +0100)
committerDavid Mudrák <david@moodle.com>
Wed, 4 Jan 2017 12:16:07 +0000 (13:16 +0100)
commit7620746f6743a7ab66c2205f3627252bc1797207
treef2e6daf319b2d5bdbae24e25c0f75e63791d41b6
parent61367eb63944d45a985b6cc4950661fd342773a6
MDL-57531 mail: Make validate_email return actual boolean as expected

It was discovered by unit tests that the return value is not a real
boolean as was intuitively expected and documented. To avoid potential
issues with the truthyness in the future, we explicitly cast the return
value to boolean now.
lib/tests/moodlelib_test.php
lib/tests/weblib_test.php
lib/upgrade.txt
lib/weblib.php