Quote:
Originally Posted by Slave
I've just tried it AndrewD ..
It seems to have fixed the cat creation problem, and the -999 problem has gone too
On the admin settings page, I can click the ok button and I don't get the error any more .. BUT! .. it doesn't save any of the changes
On the permission page something really funny happens .. it still doesn't save the change .. AND .. the permission setting I'm trying to change jumps out of the table and ends up at the top of the page .. (You'll have to see that one  )
Have you still got the details of my test forum?
|
Slave, OK, I think I have fixed these two problems, code attached. You may have to uninstall then delete the test LDM database (local_links_kill.php), as there will be some corrupt records in your admin table.
BUT - here is the basic difficulty. If you run this code
PHP Code:
$a[-1] = 10;
$a['-1'] = 20;
$a[1] = 50;
$a['1'] = 60;
print_r($a);
with versions of php before 4.3.3, it will print out 10, 20, 60. If you run it with later verisons it will print out 20,60. In other words, php's handling of negative array indices changed in 2003. I'm trying to find the places in the code where this crops up, but it's not easy. If we can't isolate this pretty quickly, I'll give up, as I am likely to introduce new bugs in the process.