PDA

View Full Version : extra fields causing errors


greg.donald
30-08-04, 02:24 PM
I'm making some mods to Dotproject for my company. One of the mods is to add base start and end dates for projects. These would be dates that once entered into the database can never be changed and would reflect original start and end dates no mater what the real start and end dates ended up being. I've made the changes in the database and the code and they work well but I've somehow created other issues along the way with task sorting.

My problem is with the header links at the top of the tasks lists. When I sort the lists I get undefined index errors from the array_csort() function in tasks.php. I'm pretty sure the line numbers no longer match up but it's complaining about this line of code:

$sortarr[$i][] = $row[$arg];

It displays "Notice: Undefined index: 1 in /var/www/dotproject/modules/tasks/tasks.php on line 354" once for each task I have on the page.

I've worked on it and cannot find how to resolve the errors. I have changed the error reporting level while making these changes the past couple of weeks, so I don't really know if the errors were there before I started or not. They go away when I reduce the error reporting back to it's default level.

So.. are these errors something to worry about or not?

TIA :)