Edited ID of a link - didn't change

Post your Click counter digestion problems here
Post Reply
imhotmedia
Posts: 1
Joined: Wed Mar 01, 2017 8:26 pm

Edited ID of a link - didn't change

Post by imhotmedia »

Script URL:
Version of script: 2.1.2
Hosting company: bluehost
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I have made my first link, but wanted to change the ID from 001 to 0001. I clicked edit, changed the ID, then clicked save. When dashboard came up again, the ID was still 001. Had to create a new link to make it work.

Just reporting this so perhaps you can fix this issue or let me know what I did wrong. Will be happy to discuss if you have any questions.

Mat
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Edited ID of a link - didn't change

Post by Klemen »

This is indeed a bug, thanks for reporting it.

It happens because with "normal" comparison PHP considers 1, 001 and 000001 to be of same value.

This should fix it (upload to "admin" folder):
http://www.phpjunkyard.com/extras/edit_link_fix.zip

The fix will also be included in the next release.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply