From 4fa9398f1f52ef742125b50d4833009fa9821f81 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 28 Apr 2017 16:29:09 +1200 Subject: [PATCH] coding guidline fix. --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index b78fd45..0a98e8a 100644 --- a/locallib.php +++ b/locallib.php @@ -371,7 +371,7 @@ function attendance_random_string($length=6) { $string = ''; for ($i = 0; $i < $length; $i++) { $rand = ord($randombytes[$i]); - $string .= substr($pool, ($rand%($poollen)), 1); + $string .= substr($pool, ($rand % ($poollen)), 1); } return $string; } \ No newline at end of file