Skip to content

Commit

Permalink
Behat: Failures due to count() warnings [PHP 7.3] [CI] #359866
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Nov 11, 2019
1 parent 61b49e7 commit 68cee2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annotate_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function definition() {
$mform->addElement('hidden', 'user', $currentuserid);
$mform->setType('user', PARAM_INT);

if (count($annotations != 0)) {
if ($annotations) {
usort($annotations, array('mod_ouwiki_annotate_form', 'ouwiki_internal_position_sort'));
$editnumber = 1;
foreach ($annotations as $annotation) {
Expand Down

0 comments on commit 68cee2a

Please sign in to comment.