Skip to content

Commit

Permalink
fix undefined variable when run from command line / cli
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Oct 20, 2008
1 parent 9f2d70f commit 1207876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.php
Expand Up @@ -145,7 +145,7 @@ function microtime_float() {
require_once( $t_core_path.'database_api.php' );

# Basic browser detection
$t_user_agent = $_SERVER['HTTP_USER_AGENT'];
$t_user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'none';

$t_browser_name = 'Normal';
if ( strpos( $t_user_agent, 'MSIE' ) ) {
Expand Down

0 comments on commit 1207876

Please sign in to comment.