From 4f3700e1092d80e71d8d24af947650ca55f0e937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Ceslav=20Przywara?= Date: Mon, 29 May 2017 14:59:15 +0200 Subject: [PATCH] Remove some uses of @ operator. See #99. --- inc/cachify.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/cachify.class.php b/inc/cachify.class.php index c37f1aa..fea16b0 100644 --- a/inc/cachify.class.php +++ b/inc/cachify.class.php @@ -1596,8 +1596,8 @@ public static function validate_options( $data ) { 'only_guests' => (int) ( ! empty( $data['only_guests'] )), 'compress_html' => (int) $data['compress_html'], 'cache_expires' => (int) ( isset( $data['cache_expires'] ) ? $data['cache_expires'] : self::$options['cache_expires'] ), - 'without_ids' => (string) sanitize_text_field( @$data['without_ids'] ), - 'without_agents' => (string) sanitize_text_field( @$data['without_agents'] ), + 'without_ids' => (string) isset( $data['without_ids'] ) ? sanitize_text_field( $data['without_ids'] ) : '', + 'without_agents' => (string) isset( $data['without_ids'] ) ? sanitize_text_field( $data['without_agents'] ) : '', 'use_apc' => (int) $data['use_apc'], 'reset_on_comment' => (int) ( ! empty( $data['reset_on_comment'] )), );