Merge branch 'release-1.1' of github.com:roundcube/roundcubemail into release-1.1
Conflicts:
CHANGELOG
| | |
| | | $group_id = is_array($record[$group_field]) ? $record[$group_field][0] : $record[$group_field]; |
| | | |
| | | if ($group) { |
| | | $users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group); |
| | | $users[] = array('name' => ($prefix ? $prefix : '') . $group_id, 'display' => $group, 'type' => 'group'); |
| | | $keys[] = $group; |
| | | } |
| | | } |
| | |
| | | { |
| | | if (!isset($this->variables)) { |
| | | $this->variables = array(); |
| | | } |
| | | |
| | | $result = $this->query('SHOW VARIABLES'); |
| | | if (array_key_exists($varname, $this->variables)) { |
| | | return $this->variables[$varname]; |
| | | } |
| | | |
| | | $result = $this->query('SHOW VARIABLES LIKE ?', $varname); |
| | | |
| | | while ($row = $this->fetch_array($result)) { |
| | | $this->variables[$row[0]] = $row[1]; |
| | | } |
| | | |
| | | // not found, use default |
| | | if (!isset($this->variables[$varname])) { |
| | | $this->variables[$varname] = $default; |
| | | } |
| | | |
| | | return isset($this->variables[$varname]) ? $this->variables[$varname] : $default; |
| | | return $this->variables[$varname]; |
| | | } |
| | | |
| | | /** |
| | |
| | | else { |
| | | // get valid file extensions |
| | | $extensions = rcube_mime::get_mime_extensions($real_mimetype); |
| | | $valid_extension = !$file_extension || in_array($file_extension, (array)$extensions); |
| | | $valid_extension = !$file_extension || empty($extensions) || in_array($file_extension, (array)$extensions); |
| | | } |
| | | |
| | | // fix mimetype for images wrongly declared as octet-stream |