diff -r 2cb1c8a6d3db -r 340c81fdd350 includes/template.php
--- a/includes/template.php Thu Mar 06 23:04:45 2008 -0500
+++ b/includes/template.php Thu Mar 06 23:27:50 2008 -0500
@@ -2202,10 +2202,13 @@
$q_loc = '' . ( is_object($db) ? "{$db->num_queries} SQL" : 'Queries: N/A' ) . '';
$dbg = $t_loc;
$dbg_long = $t_loc_long;
- if ( $session->user_level >= USER_LEVEL_ADMIN )
+ if ( is_object($session) )
{
- $dbg .= " | $q_loc";
- $dbg_long .= " | $q_loc";
+ if ( $session->user_level >= USER_LEVEL_ADMIN )
+ {
+ $dbg .= " | $q_loc";
+ $dbg_long .= " | $q_loc";
+ }
}
$t = str_replace('[[EnanoPoweredLink]]', 'Powered by Enano', $t);
$t = str_replace('[[EnanoPoweredLinkLong]]', 'Website engine powered by Enano', $t);