PHP Classes

Incorrect error message in get_isbn13_checkdigit (line 59)

Recommend this page to a friend!

      ISBN check  >  All threads  >  Incorrect error message in...  >  (Un) Subscribe thread alerts  
Subject:Incorrect error message in...
Summary:message should say 13 instead of 10
Messages:3
Author:Rich Currie
Date:2014-10-08 19:15:23
 

  1. Incorrect error message in...   Reply   Report abuse  
Picture of Rich Currie Rich Currie - 2014-10-08 19:15:23
The code on line 59 sets the error message to read:
"Given ISBN-13 is not 10 digits"
it should be
"Given ISBN-13 is not 13 digits"

Regards, Rich

  2. Re: Incorrect error message in...   Reply   Report abuse  
Picture of Keith Nunn Keith Nunn - 2014-10-08 19:40:00 - In reply to message 1 from Rich Currie
Thanks Rich. I'll fix that. Is the class useful to you or did you just spot the error cruising by? I keep forgetting that this is out there so it's fun to hear of people using it from time to time.

  3. Re: Incorrect error message in...   Reply   Report abuse  
Picture of Rich Currie Rich Currie - 2014-10-08 19:48:06 - In reply to message 2 from Keith Nunn
I was just looking at the code in consideration of using it.
By the way, the comment on line 54 for the function needs to
be corrected too.

I'm an old systems programmer and accustomed to fleecing through code quickly. :-)