if ($m['addr'] == 'new') $action_name = 'Добавить'; else { $action_name = 'Изменить'; $a = db_search_one('contacts', ['addr'=>$m['addr']]); } ?>