summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-11 12:08:44 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-11 12:10:10 +0200
commitacb4b71ce55f3d98f7053b7bb8fdcf3c7858fbfc (patch)
treeb33180670e4473bec32621568892502190d6ecca /program/include
parentb9139f9f98fe994142dd3e050dac1e6ec9a24309 (diff)
Fix error when there's no writeable addressbook source (#1489162)
Conflicts: CHANGELOG
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index c35c24f8c..19a89b84c 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -228,6 +228,11 @@ class rcmail extends rcube
}
if (!$contacts) {
+ // there's no default, just return
+ if ($default) {
+ return null;
+ }
+
self::raise_error(array(
'code' => 700, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,