Completed
Push — development ( de01a1...0f6a74 )
by Nils
06:57
created
sources/admin.queries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
             $objects = explode(",", $post_object);
765 765
 
766 766
             // Allowed values for $_POST['object'] : "items,logs,files,categories"
767
-            if (in_array($objects[0], array("items","logs","files","categories")) === false) {
767
+            if (in_array($objects[0], array("items", "logs", "files", "categories")) === false) {
768 768
                 echo '[{"nextAction":"" , "error":"Input `'.$objects[0].'` is not allowed" , "nbOfItems":""}]';
769 769
                 break;
770 770
             }
@@ -1329,7 +1329,7 @@  discard block
 block discarded – undo
1329 1329
             foreach ($rows as $record) {
1330 1330
                 if (is_file($SETTINGS['path_to_upload_folder'].'/'.$record['file'])) {
1331 1331
                     $addFile = 0;
1332
-                    if ($post_option== "decrypt" && $record['status'] === 'encrypted') {
1332
+                    if ($post_option == "decrypt" && $record['status'] === 'encrypted') {
1333 1333
                         $addFile = 1;
1334 1334
                     } elseif ($post_option == "encrypt" && $record['status'] === 'clear') {
1335 1335
                         $addFile = 1;
Please login to merge, or discard this patch.