--- cacti-0.8.6/lib/functions.php	2004-09-12 15:46:25.000000000 -0400
+++ cacti-0.8.7/lib/functions.php	2004-09-13 21:41:20.000000000 -0400
@@ -67,7 +67,7 @@
    @returns - the current value of the graph configuration option */
 function read_graph_config_option($config_name) {
 	/* users must have cacti user auth turned on to use this */
-	if (read_config_option("global_auth") != "on") {
+	if ((read_config_option("global_auth") != "on") || (!isset($_SESSION["sess_user_id"]))) {
 		return read_default_graph_config_option($config_name);
 	}
 
