@@ -1234,7 +1234,9 @@ discard block |
||
| 1234 | 1234 | ); |
| 1235 | 1235 | |
| 1236 | 1236 | // Create a task to create sharekeys for users |
| 1237 | - if (WIP=== true) error_log('createTaskForItem - new password for this item - '.$post_password ." -- ". $pw); |
|
| 1237 | + if (WIP=== true) { |
|
| 1238 | + error_log('createTaskForItem - new password for this item - '.$post_password ." -- ". $pw); |
|
| 1239 | + } |
|
| 1238 | 1240 | $tasksToBePerformed = ['item_password']; |
| 1239 | 1241 | $encryptionTaskIsRequested = true; |
| 1240 | 1242 | } else { |
@@ -1550,7 +1552,9 @@ discard block |
||
| 1550 | 1552 | |
| 1551 | 1553 | // create a task for all fields updated |
| 1552 | 1554 | if ($encryptionTaskIsRequested === true) { |
| 1553 | - if (WIP === true) error_log('createTaskForItem - '.print_r($tasksToBePerformed, true)); |
|
| 1555 | + if (WIP === true) { |
|
| 1556 | + error_log('createTaskForItem - '.print_r($tasksToBePerformed, true)); |
|
| 1557 | + } |
|
| 1554 | 1558 | createTaskForItem( |
| 1555 | 1559 | 'item_update_create_keys', |
| 1556 | 1560 | $tasksToBePerformed, |
@@ -2051,7 +2055,9 @@ discard block |
||
| 2051 | 2055 | $inputData['itemId'] |
| 2052 | 2056 | ); |
| 2053 | 2057 | foreach ($rows as $record) { |
| 2054 | - if ($record['raison'] === NULL) continue; |
|
| 2058 | + if ($record['raison'] === NULL) { |
|
| 2059 | + continue; |
|
| 2060 | + } |
|
| 2055 | 2061 | $reason = explode(':', $record['raison']); |
| 2056 | 2062 | if (count($reason) > 0) { |
| 2057 | 2063 | $sentence = date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['date']) . ' - ' |
@@ -4753,8 +4759,9 @@ discard block |
||
| 4753 | 4759 | $ids = $tree->getDescendants($folder['id'], true, false, true); |
| 4754 | 4760 | |
| 4755 | 4761 | // This folder is owned by user |
| 4756 | - if (in_array($inputData['folderId'], $ids)) |
|
| 4757 | - $accessLevel = 30; |
|
| 4762 | + if (in_array($inputData['folderId'], $ids)) { |
|
| 4763 | + $accessLevel = 30; |
|
| 4764 | + } |
|
| 4758 | 4765 | } |
| 4759 | 4766 | } |
| 4760 | 4767 | |
@@ -134,7 +134,9 @@ |
||
| 134 | 134 | handleAttachmentError('File exceeds the maximum allowed size', 120, 413); |
| 135 | 135 | die(); |
| 136 | 136 | } |
| 137 | - if (WIP === true) error_log('POST_MAX_SIZE: ' . $POST_MAX_SIZE." - CONTENT_LENGTH: ".$_SERVER['CONTENT_LENGTH']." - UNIT: ".$unit." - MAX: ".$maxSize." - MULTIPLIER: ".$multiplier." - FILE_SIZE: ".$post_fileSize); |
|
| 137 | + if (WIP === true) { |
|
| 138 | + error_log('POST_MAX_SIZE: ' . $POST_MAX_SIZE." - CONTENT_LENGTH: ".$_SERVER['CONTENT_LENGTH']." - UNIT: ".$unit." - MAX: ".$maxSize." - MULTIPLIER: ".$multiplier." - FILE_SIZE: ".$post_fileSize); |
|
| 139 | + } |
|
| 138 | 140 | |
| 139 | 141 | // delete expired tokens |
| 140 | 142 | DB::delete(prefixTable('tokens'), 'end_timestamp < %i', time()); |