Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-11-11 15:26:08 +0300
committerAleksander Machniak <alec@alec.pl>2022-11-11 15:26:08 +0300
commite111f22d507f9fce7b06449e4dce922d9c773dc6 (patch)
treeb1f76f24e126b1d1c69fe6acd7549e8e0db1970f
parent473eec4a8a271c44380fcea67289cc49e8137d16 (diff)
Fix a PHP warning (#8743)
-rw-r--r--program/lib/Roundcube/rcube_imap.php2
-rw-r--r--program/lib/Roundcube/rcube_result_index.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 325e91da4..bd69663f3 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -2064,7 +2064,7 @@ class rcube_imap extends rcube_storage
$struct->ctype_secondary = strtolower($part[$i]);
// read content type parameters
- if (is_array($part[$i+1])) {
+ if (isset($part[$i+1]) && is_array($part[$i+1])) {
$struct->ctype_parameters = [];
for ($j=0; $j<count($part[$i+1]); $j+=2) {
$param = strtolower($part[$i+1][$j]);
diff --git a/program/lib/Roundcube/rcube_result_index.php b/program/lib/Roundcube/rcube_result_index.php
index 0180d62db..ba487280a 100644
--- a/program/lib/Roundcube/rcube_result_index.php
+++ b/program/lib/Roundcube/rcube_result_index.php
@@ -419,7 +419,7 @@ class rcube_result_index
*/
public function get_parameters($param = null)
{
- $params = $this->params;
+ $params = $this->params;
$params['MAILBOX'] = $this->mailbox;
$params['ORDER'] = $this->order;