Huub
One serious error, which can lead to fatal SQL errors:
Line 953: $query='';
This code should PRECEDE the condition in Line 952, so that $query is correctly initialised when the condition fails.
One minor error, obviously untested by its coder:
Line 782: else strtoupper($selection['gednr']=$_POST['gednr']);
The code intended was probably: else $selection['gednr']=strtoupper($_POST['gednr']);
[Solved in 5.4] 2 bugs in list.php
- Huub
- HuMo-genealogy programmer
- Posts: 2693
- Joined: Wed 27 Aug 2008, 11:34
- Location: Heerhugowaard, Netherlands
- Contact:
Re: 2 bugs in list.php
Hello kintree,
I have tested both piece of code:
$query is allready declared at line 672:
Line 782 is changed for the next version. I have tested the old code, but it didn't matter if "i" or "I" was used in the search for gedcomnumber.
But the code was wrong, and is improved now!
As you probably can see, the codes of several scripts is changed a lot in many years. We are still trying to improve the scripts (by using functions etc.), and sometimes i'm completely rebuilding a script. But it's a hobby for me, I have to do this in the evening hours and weekends...
I have tested both piece of code:
$query is allready declared at line 672:
Code: Select all
$query='';
But the code was wrong, and is improved now!
As you probably can see, the codes of several scripts is changed a lot in many years. We are still trying to improve the scripts (by using functions etc.), and sometimes i'm completely rebuilding a script. But it's a hobby for me, I have to do this in the evening hours and weekends...
HuMo-genealogy update? Backup your database! Editing in HuMo-genealogy? Backup your data!
Make multiple backups with: PHPMyAdmin, gedcom export and database export.
HuMo-genealogy software: http://humo-gen.com
Make multiple backups with: PHPMyAdmin, gedcom export and database export.
HuMo-genealogy software: http://humo-gen.com