MDL-65006 policy: avoid loop when no policies need to be agreeded
authorSara Arjona <sara@moodle.com>
Thu, 7 Mar 2019 14:51:54 +0000 (15:51 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 8 Mar 2019 09:01:51 +0000 (10:01 +0100)
commit63be19c543dbe74069cc332dcbbe846a8d573bd9
treef9b16ebe17a1da4d6fe45a5b55867adeebe1d078
parenta713ed3ba684e3e24b3b0eb3280f79792929ad79
MDL-65006 policy: avoid loop when no policies need to be agreeded

Avoid an infinite loop when the user has no policies to agreed but
the policyagreed = 0.
admin/tool/policy/classes/output/page_agreedocs.php
admin/tool/policy/tests/behat/acceptances.feature