From f768a6eae82d549e444511639d19c471321234c1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 22 Nov 2013 12:50:41 +0100 Subject: Fix so contactnotfound message is of type error not info --- program/steps/addressbook/edit.inc | 2 +- program/steps/addressbook/show.inc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'program') diff --git a/program/steps/addressbook/edit.inc b/program/steps/addressbook/edit.inc index 7ddd3e516..de78baa1b 100644 --- a/program/steps/addressbook/edit.inc +++ b/program/steps/addressbook/edit.inc @@ -70,7 +70,7 @@ function rcmail_get_edit_record() else if ($RCMAIL->action != 'add' && !(($result = $CONTACTS->get_result()) && ($record = $result->first())) ) { - $RCMAIL->output->show_message('contactnotfound'); + $RCMAIL->output->show_message('contactnotfound', 'error'); return false; } diff --git a/program/steps/addressbook/show.inc b/program/steps/addressbook/show.inc index efab5e9e5..840023990 100644 --- a/program/steps/addressbook/show.inc +++ b/program/steps/addressbook/show.inc @@ -45,7 +45,7 @@ function rcmail_contact_head($attrib) // check if we have a valid result if (!(($result = $CONTACTS->get_result()) && ($record = $result->first()))) { - $RCMAIL->output->show_message('contactnotfound'); + $RCMAIL->output->show_message('contactnotfound', 'error'); return false; } @@ -72,7 +72,6 @@ function rcmail_contact_details($attrib) // check if we have a valid result if (!(($result = $CONTACTS->get_result()) && ($record = $result->first()))) { - //$RCMAIL->output->show_message('contactnotfound'); return false; } -- cgit v1.2.3