From 0866ff2d438dfe11c306f60fa88e21c0f0866ed5 Mon Sep 17 00:00:00 2001 From: diplopito <26707508+diplopito@users.noreply.github.com> Date: Mon, 11 Apr 2022 19:21:27 +0300 Subject: [PATCH 01/35] Update view.php (#180) * Update view.php When `$type = 'ReJSON-RL'`, a warning is displayed: "Notice: Undefined variable: size in view.php on line 116." This is a small patch while reJson is added to library. * Update view.php * Update view.php Extended `if` code (didn't want to nest ternary operators). * Update view.php Default statement updated. --- view.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/view.php b/view.php index 1bfff92..e33bcae 100644 --- a/view.php +++ b/view.php @@ -96,6 +96,9 @@ } $size = count($values); break; + + default: + $size = -1; } if (isset($values) && ($count_elements_page !== false)) { @@ -113,7 +116,19 @@
-Redis Documentation +Redis Documentation
$config['maxkeylen']) { diff --git a/save.php b/save.php index 3154e8c..ef8b1d8 100644 --- a/save.php +++ b/save.php @@ -1,9 +1,7 @@ Invalid key @@ -18,8 +17,6 @@ die; } - - $type = $redis->type($_GET['key']); $exists = $redis->exists($_GET['key']); @@ -27,8 +24,6 @@ $page_num_request = isset($_GET['page']) ? (int)$_GET['page'] : 1; $page_num_request = $page_num_request === 0 ? 1 : $page_num_request; - - ?>-> (-1 to remove the TTL) +> (-1 to remove the TTL)
From 2d977bce2a3225bacf9ab04ba0ca27c5d58324ab Mon Sep 17 00:00:00 2001 From: Wildan M