Permalink
Browse files

fix check_issn hook (didn't work when the check digit=0)

  • Loading branch information...
jfriviere committed Dec 13, 2018
1 parent f8440b2 commit 9ba97c217dee9780fb2b94df752c05b50dab4bb9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lodel/scripts/hookfunc.php
@@ -73,7 +73,7 @@ function check_issn(&$context, $field, &$errors)
}
$check %= 11;
$check = 11 - $check;
if ($check != 0) $check = 11 - $check;
if ($check == $checksum || (($check == 10) && ($checksum == 'X'))) {
$context['data'][$field] = wordwrap($value,4,'-', true);

0 comments on commit 9ba97c2

Please sign in to comment.