Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/crayon_util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ public static function preg_escape_back($string) {

// Detect if on a Mac or PC
public static function is_mac($default = FALSE) {
$user = $_SERVER['HTTP_USER_AGENT'];
$user = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '';
if (stripos($user, 'macintosh') !== FALSE) {
return TRUE;
} else if (stripos($user, 'windows') !== FALSE || stripos($user, 'linux') !== FALSE) {
Expand Down