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:49 +0300
commiteff5130f6ffaad6ec5fec2de742012ab1a91ac32 (patch)
treea6ece04728d79829f442af80a022f5bc3563c79f
parent2f5326a7bf5b9b82eb3220a6d6bc760c73217928 (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;