Thanks for the quick bug fixes! All the stuff I reported before works great, and thanks for using my idea - at least I feel like I contribute a bit now.
Small bug: the SAC rate on the individual dive page still says "cu ft/min".
Dive profiles aren't being drawn for me now in the individual dives. Here are the errors and stack traces. The first two seem to come up whenever I go to an individual dive, and is probably what's making the dive profiles not work. The second two actually occur when I click on the "Dive Sites" link. The link works, but I get these errors in the error log.
[Wed Oct 3 08:06:30 2007] [error] PHP Stack trace:
[Wed Oct 3 08:06:30 2007] [error] PHP 1. {main}() /server/html/divelog/index.php:0
[Wed Oct 3 08:06:30 2007] [error] PHP 2. divelog->set_breathing_details() /server/html/divelog/index.php:73
[Wed Oct 3 08:06:30 2007] [error] PHP Notice: Undefined offset: -1 in /server/html/divelog/classes.inc.php on line 908
AND
[Wed Oct 3 08:06:31 2007] [error] PHP Stack trace:
[Wed Oct 3 08:06:31 2007] [error] PHP 1. {main}() /server/html/divelog/drawprofile.php:0
[Wed Oct 3 08:06:31 2007] [error] PHP 2. include_once() /server/html/divelog/drawprofile.php:31
[Wed Oct 3 08:06:31 2007] [error] PHP 3. require_once() /server/html/divelog/includes/jpgraph/src/jpgraph.php:180
[Wed Oct 3 08:06:31 2007] [error] PHP Fatal error: Cannot redeclare class gradient in /server/html/divelog/includes/jpgraph/src/jpgraph_gradient.php on line 32
------
[Wed Oct 3 08:16:59 2007] [error] PHP Stack trace:
[Wed Oct 3 08:16:59 2007] [error] PHP 1. {main}() /server/html/divelog/divesite.php:0
[Wed Oct 3 08:16:59 2007] [error] PHP 2. divesite->get_divesite_overview() /server/html/divelog/divesite.php:66
[Wed Oct 3 08:16:59 2007] [error] PHP 3. divesite->get_divesite_overview_table() /server/html/divelog/classes.inc.php:1537
[Wed Oct 3 08:16:59 2007] [error] PHP Notice: Undefined property: requested_page in /server/html/divelog/classes.inc.php on line 1567
[Wed Oct 3 08:16:59 2007] [error] PHP Stack trace:
[Wed Oct 3 08:16:59 2007] [error] PHP 1. {main}() /server/html/divelog/divesite.php:0
[Wed Oct 3 08:16:59 2007] [error] PHP 2. divesite->get_divesite_overview() /server/html/divelog/divesite.php:66
[Wed Oct 3 08:16:59 2007] [error] PHP 3. divesite->get_divesite_overview_table() /server/html/divelog/classes.inc.php:1537
[Wed Oct 3 08:16:59 2007] [error] PHP 4. pager_wrapper_mdb2() /server/html/divelog/classes.inc.php:1571
[Wed Oct 3 08:16:59 2007] [error] PHP Notice: Only variables should be assigned by reference in /server/html/divelog/pear/Pager_Wrapper.php on line 209