Aleksander Machniak
2013-11-22 f768a6eae82d549e444511639d19c471321234c1
Fix so contactnotfound message is of type error not info
2 files modified
5 ■■■■■ changed files
program/steps/addressbook/edit.inc 2 ●●● patch | view | raw | blame | history
program/steps/addressbook/show.inc 3 ●●●● patch | view | raw | blame | history
program/steps/addressbook/edit.inc
@@ -70,7 +70,7 @@
     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;
     }
program/steps/addressbook/show.inc
@@ -45,7 +45,7 @@
    // 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 @@
    // check if we have a valid result
    if (!(($result = $CONTACTS->get_result()) && ($record = $result->first()))) {
        //$RCMAIL->output->show_message('contactnotfound');
        return false;
    }