PHP Classes

gtin14 bug

Recommend this page to a friend!

      ISBN check  >  All threads  >  gtin14 bug  >  (Un) Subscribe thread alerts  
Subject:gtin14 bug
Summary:get_gtin14_checkdigit() variable bug
Messages:2
Author:Kieran P
Date:2008-02-25 07:36:06
Update:2009-11-19 20:17:57
 

  1. gtin14 bug   Reply   Report abuse  
Picture of Kieran P Kieran P - 2008-02-25 07:36:06
in the function get_gtin14_checkdigit() you use a variable called $gtin14, that doesn't exist. $this->gtin14 does. Maybe you forgot the $this-> part. Quick fix is above the

$checkdigit = ...;

line, add

$gtin14 = $this->gtin14;

  2. Re: gtin14 bug   Reply   Report abuse  
Picture of Keith Nunn Keith Nunn - 2009-11-19 20:17:57 - In reply to message 1 from Kieran P
Thanks for catching that. Sorry I didn't see your post, but I'm rarely here and the site doesn't seem to notify me of posts in the support forum. I've made a fix and will upload shortly.