Verified Commit 356e0eed authored by bmortier's avatar bmortier
Browse files

:ambulance: fix(orcid) orcid test method is wrong and break orcid saving


Signed-off-by: bmortier's avatarBenoit Mortier <benoit.mortier@fusiondirectory.org>
Showing with 1 addition and 1 deletion
+1 -1
......@@ -370,7 +370,7 @@ class tests
public static function is_orcid ($orcid)
{
/* Remove hyphens, remove last digit, convert to array */
$baseDigits = str_split(str_replace('-', '', substr($orcid, 0, -1)));
$baseDigits = str_split(str_replace('-', '', $orcid));
$sum = 0;
foreach ($baseDigits as $baseDigit) {
$sum = ($sum + (int)$baseDigit) * 2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment