Aleksander Machniak
2016-01-11 d5f7490b0833ad9fff21f5aaa135b2474d242ba0
Fix PHP Fatal error: Can't use function return value in write context
1 files modified
8 ■■■■ changed files
program/lib/Roundcube/rcube_addressbook.php 8 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_addressbook.php
@@ -550,12 +550,12 @@
        // fallbacks...
        if ($fn === '') {
            // ... display name
            if (!empty(trim($contact['name']))) {
                $fn = $contact['name'];
            if ($name = trim($contact['name'])) {
                $fn = $name;
            }
            // ... organization
            else if (!empty($contact['organization'])) {
                $fn = $contact['organization'];
            else if ($org = trim($contact['organization'])) {
                $fn = $org;
            }
            // ... email address
            else if (($email = self::get_col_values('email', $contact, true)) && !empty($email)) {