From: <vb...@us...> - 2002-10-03 06:01:28
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv24956a Modified Files: note_add_page.php Log Message: - 0000071: Default e-mail for logged in users. - Fixed error handling in config_api.php (still to be enhanced). Index: note_add_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_add_page.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- note_add_page.php 22 Sep 2002 02:47:16 -0000 1.20 +++ note_add_page.php 3 Oct 2002 06:01:25 -0000 1.21 @@ -25,6 +25,12 @@ if ( 0 == $f_note_id ) { $f_page_id = gpc_get_int( 'f_page_id' ); $t_default_email = ''; + if ( ( ON == config_get('auto_set_email') ) && access_is_logged_in() ) { + $t_user_info = user_get_info( user_where_current() ); + if ( false !== $t_user_info ) { + $t_default_email = $t_user_info['email']; + } + } $t_default_body = ''; $t_note_id = 0; } else { |