Browse Source

Fix checks on the value for the STORE argument (ISSUE #13).

Daniele Alessandri 14 năm trước cách đây
mục cha
commit
9468891faf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -2754,7 +2754,7 @@ class Sort extends Command {
         if (isset($sortParams['alpha']) && $sortParams['alpha'] == true) {
             $query[] = 'ALPHA';
         }
-        if (isset($sortParams['store']) && $sortParams['store'] == true) {
+        if (isset($sortParams['store'])) {
             $query[] = 'STORE';
             $query[] = $sortParams['store'];
         }