Cleanup a few small warnings.

This commit is contained in:
skeeter 2002-04-09 23:48:36 +00:00
parent 0bd3848040
commit 4e929d519c
3 changed files with 5 additions and 3 deletions

View File

@ -110,7 +110,7 @@
elseif(!empty($ConfigLogin) && $auth_type == 'Config') elseif(!empty($ConfigLogin) && $auth_type == 'Config')
{ {
/* config login */ /* config login */
if($FormPW == $GLOBALS['phpgw_domain'][$FormDomain]['config_passwd']) if($FormPW == @$GLOBALS['phpgw_domain'][$FormDomain]['config_passwd'])
{ {
setcookie('ConfigPW',"$FormPW","$expire"); setcookie('ConfigPW',"$FormPW","$expire");
setcookie('ConfigDomain',"$FormDomain","$expire"); setcookie('ConfigDomain',"$FormDomain","$expire");
@ -215,6 +215,7 @@
*/ */
function clear_session_cache() function clear_session_cache()
{ {
$tables = Array();
$tablenames = @$this->db->table_names(); $tablenames = @$this->db->table_names();
while(list($key,$val) = @each($tablenames)) while(list($key,$val) = @each($tablenames))
{ {

View File

@ -40,6 +40,7 @@
function get_db_versions($setup_info='') function get_db_versions($setup_info='')
{ {
$tname = Array();
$GLOBALS['phpgw_setup']->db->Halt_On_Error = 'no'; $GLOBALS['phpgw_setup']->db->Halt_On_Error = 'no';
$tables = $GLOBALS['phpgw_setup']->db->table_names(); $tables = $GLOBALS['phpgw_setup']->db->table_names();
while(list($key,$val) = @each($tables)) while(list($key,$val) = @each($tables))

View File

@ -133,8 +133,8 @@
function login_form() function login_form()
{ {
/* begin use TEMPLATE login_main.tpl */ /* begin use TEMPLATE login_main.tpl */
$GLOBALS['setup_tpl']->set_var('ConfigLoginMSG',$GLOBALS['phpgw_info']['setup']['ConfigLoginMSG']); $GLOBALS['setup_tpl']->set_var('ConfigLoginMSG',@$GLOBALS['phpgw_info']['setup']['ConfigLoginMSG']);
$GLOBALS['setup_tpl']->set_var('HeaderLoginMSG',$GLOBALS['phpgw_info']['setup']['HeaderLoginMSG']); $GLOBALS['setup_tpl']->set_var('HeaderLoginMSG',@$GLOBALS['phpgw_info']['setup']['HeaderLoginMSG']);
if ($GLOBALS['phpgw_info']['setup']['stage']['header'] == '10') if ($GLOBALS['phpgw_info']['setup']['stage']['header'] == '10')
{ {