Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Redis Page Cache
Commits
5d1d11a5
Commit
5d1d11a5
authored
Feb 27, 2014
by
Erick Hitter
Browse files
Resolve undefined index notice
parent
9b0ebc72
Changes
1
Hide whitespace changes
Inline
Side-by-side
index-wp-redis.php
View file @
5d1d11a5
...
...
@@ -159,7 +159,7 @@ function wp_redis_cache_set_device_key( $key ) {
* @return string
*/
function
wp_redis_cache_get_device_type
()
{
$ua
=
$_SERVER
[
'HTTP_USER_AGENT'
];
$ua
=
isset
(
$_SERVER
[
'HTTP_USER_AGENT'
]
)
?
$_SERVER
[
'HTTP_USER_AGENT'
]
:
''
;
if
(
empty
(
$ua
)
)
{
return
'desktop'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment