From f0123f6cf5bbfd39855b54ee89030c5397526289 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 7 Sep 2001 17:51:48 +0000 Subject: [PATCH] Fix for php3 support. --- calendar/inc/class.uicalendar.inc.php | 44 +++++++-------------- calendar/templates/default/header.inc.php | 43 ++++++++++---------- calendar/templates/idsociety/header.inc.php | 43 ++++++++++---------- calendar/templates/justweb/header.inc.php | 43 ++++++++++---------- calendar/templates/verdilak/header.inc.php | 43 ++++++++++---------- phpgwapi/inc/class.common.inc.php | 4 +- 6 files changed, 101 insertions(+), 119 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 825de140f8..41cd79594e 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -651,8 +651,6 @@ function add($cd=0,$readsess=0) { - global $HTTP_GET_VARS; - if(!$this->bo->check_perms(PHPGW_ACL_ADD)) { $this->index(); @@ -674,8 +672,8 @@ $can_edit = True; - $thishour = (isset($HTTP_GET_VARS['hour'])?intval($HTTP_GET_VARS['hour']):0); - $thisminute = (isset($HTTP_GET_VARS['minute'])?intval($HTTP_GET_VARS['minute']):0); + $thishour = (isset($GLOBALS['HTTP_GET_VARS']['hour'])?intval($GLOBALS['HTTP_GET_VARS']['hour']):0); + $thisminute = (isset($GLOBALS['HTTP_GET_VARS']['minute'])?intval($GLOBALS['HTTP_GET_VARS']['minute']):0); $this->bo->set_start($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0); $this->bo->set_end($this->bo->year,$this->bo->month,$this->bo->day,$thishour,$thisminute,0); $this->bo->set_title(''); @@ -705,20 +703,18 @@ function delete() { - global $HTTP_GET_VARS; - - if(!isset($HTTP_GET_VARS['cal_id'])) + if(!isset($GLOBALS['HTTP_GET_VARS']['cal_id'])) { Header('Location: '.$this->page('','&date='.sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day))); $GLOBALS['phpgw']->common->phpgw_exit(); } - $event = $this->bo->read_entry(intval($HTTP_GET_VARS['cal_id'])); - if(($HTTP_GET_VARS['cal_id'] > 0) && ($event['owner'] == $this->bo->owner) && $this->bo->check_perms(PHPGW_ACL_DELETE)) + $event = $this->bo->read_entry(intval($GLOBALS['HTTP_GET_VARS']['cal_id'])); + if(($GLOBALS['HTTP_GET_VARS']['cal_id'] > 0) && ($event['owner'] == $this->bo->owner) && $this->bo->check_perms(PHPGW_ACL_DELETE)) { $date = sprintf("%04d%02d%02d",$event['start']['year'],$event['start']['month'],$event['start']['mday']); - $cd = $this->bo->delete_entry(intval($HTTP_GET_VARS['cal_id'])); + $cd = $this->bo->delete_entry(intval($GLOBALS['HTTP_GET_VARS']['cal_id'])); $this->bo->expunge(); } else @@ -799,15 +795,13 @@ function edit_status() { - global $HTTP_GET_VARS; - unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']); $GLOBALS['phpgw_info']['flags']['noappheader'] = True; $GLOBALS['phpgw_info']['flags']['noappfooter'] = True; $GLOBALS['phpgw']->common->phpgw_header(); - $event = $this->bo->read_entry($HTTP_GET_VARS['cal_id']); + $event = $this->bo->read_entry($GLOBALS['HTTP_GET_VARS']['cal_id']); reset($event['participants']); @@ -841,15 +835,13 @@ function set_action() { - global $HTTP_GET_VARS; - if(!$this->bo->check_perms(PHPGW_ACL_EDIT)) { $this->no_edit(); return; } - $this->bo->set_status(intval($HTTP_GET_VARS['cal_id']),intval($HTTP_GET_VARS['action'])); + $this->bo->set_status(intval($GLOBALS['HTTP_GET_VARS']['cal_id']),intval($GLOBALS['HTTP_GET_VARS']['action'])); Header('Location: '.$this->page('','')); } @@ -1161,9 +1153,7 @@ function viewmatrix() { - global $HTTP_POST_VARS; - - $participants = $HTTP_POST_VARS['participants']; + $participants = $GLOBALS['HTTP_POST_VARS']['participants']; $parts = Array(); $acct = CreateObject('phpgwapi.accounts',$this->bo->owner); $c_participants = count($participants); @@ -1204,7 +1194,7 @@ unset($GLOBALS['phpgw_info']['flags']['nonavbar']); $GLOBALS['phpgw']->common->phpgw_header(); - switch($HTTP_POST_VARS['matrixtype']) + switch($GLOBALS['HTTP_POST_VARS']['matrixtype']) { case 'free/busy': $freetime = $this->bo->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year); @@ -1232,7 +1222,7 @@ echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; - echo ' '."\n"; + echo ' '."\n"; reset($parts); while(list($key,$value) = each($parts)) { @@ -1245,9 +1235,7 @@ function search() { - global $HTTP_POST_VARS; - - if (!$HTTP_POST_VARS['keywords']) + if (!$GLOBALS['HTTP_POST_VARS']['keywords']) { // If we reach this, it is because they didn't search for anything, // attempt to send them back to where they where. @@ -1260,7 +1248,7 @@ $error = ''; - if (strlen($HTTP_POST_VARS['keywords']) == 0) + if (strlen($GLOBALS['HTTP_POST_VARS']['keywords']) == 0) { echo ''.lang('Error').':'; echo lang('You must enter one or more search keywords.'); @@ -1275,7 +1263,7 @@ // This has been solved by the little icon indicator for recurring events. - $event_ids = $this->bo->search_keywords($HTTP_POST_VARS['keywords']); + $event_ids = $this->bo->search_keywords($GLOBALS['HTTP_POST_VARS']['keywords']); $ids = Array(); while(list($key,$id) = each($event_ids)) { @@ -1407,8 +1395,6 @@ function header() { - global $HTTP_POST_VARS, $HTTP_GET_VARS; - $cols = 8; if($this->bo->check_perms(PHPGW_ACL_PRIVATE) == True) { @@ -1426,7 +1412,7 @@ function footer() { - list(,,$method) = explode('.',$GLOBALS['menuaction']); + list(,,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); if (@$this->bo->printer_friendly) { diff --git a/calendar/templates/default/header.inc.php b/calendar/templates/default/header.inc.php index 2d3c548d6b..73bc0a6dfe 100755 --- a/calendar/templates/default/header.inc.php +++ b/calendar/templates/default/header.inc.php @@ -19,11 +19,10 @@ function add_image_ahref($link,$image,$alt) { - global $GLOBALS; return ''.$alt.''; } - $refer = explode('.',$HTTP_GET_VARS['menuaction']); + $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); $referrer = $refer[2]; $templates = Array( @@ -60,27 +59,27 @@ if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) { $remainder -= 28; - $hidden_vars = ''."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ''."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) + if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) + if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) { - for ($i=0;$i'."\n"; + $hidden_vars .= ' '."\n"; } } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")
\n"; } @@ -103,21 +102,21 @@ if(count($this->bo->grants) > 0) { - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) + if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $form_options = ''; reset($this->bo->grants); @@ -141,10 +140,10 @@ $tpl->parse('header_column','head_col',True); } - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; @@ -153,7 +152,7 @@ { $hidden_vars .= ' '."\n"; } - $hidden_vars .= ' '; + $hidden_vars .= ' '; $var = Array( 'action_url_button' => $this->page('search'), diff --git a/calendar/templates/idsociety/header.inc.php b/calendar/templates/idsociety/header.inc.php index 2d3c548d6b..73bc0a6dfe 100755 --- a/calendar/templates/idsociety/header.inc.php +++ b/calendar/templates/idsociety/header.inc.php @@ -19,11 +19,10 @@ function add_image_ahref($link,$image,$alt) { - global $GLOBALS; return ''.$alt.''; } - $refer = explode('.',$HTTP_GET_VARS['menuaction']); + $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); $referrer = $refer[2]; $templates = Array( @@ -60,27 +59,27 @@ if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) { $remainder -= 28; - $hidden_vars = ''."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ''."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) + if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) + if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) { - for ($i=0;$i'."\n"; + $hidden_vars .= ' '."\n"; } } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")
\n"; } @@ -103,21 +102,21 @@ if(count($this->bo->grants) > 0) { - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) + if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $form_options = ''; reset($this->bo->grants); @@ -141,10 +140,10 @@ $tpl->parse('header_column','head_col',True); } - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; @@ -153,7 +152,7 @@ { $hidden_vars .= ' '."\n"; } - $hidden_vars .= ' '; + $hidden_vars .= ' '; $var = Array( 'action_url_button' => $this->page('search'), diff --git a/calendar/templates/justweb/header.inc.php b/calendar/templates/justweb/header.inc.php index 2d3c548d6b..73bc0a6dfe 100755 --- a/calendar/templates/justweb/header.inc.php +++ b/calendar/templates/justweb/header.inc.php @@ -19,11 +19,10 @@ function add_image_ahref($link,$image,$alt) { - global $GLOBALS; return ''.$alt.''; } - $refer = explode('.',$HTTP_GET_VARS['menuaction']); + $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); $referrer = $refer[2]; $templates = Array( @@ -60,27 +59,27 @@ if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) { $remainder -= 28; - $hidden_vars = ''."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ''."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) + if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) + if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) { - for ($i=0;$i'."\n"; + $hidden_vars .= ' '."\n"; } } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")
\n"; } @@ -103,21 +102,21 @@ if(count($this->bo->grants) > 0) { - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) + if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $form_options = ''; reset($this->bo->grants); @@ -141,10 +140,10 @@ $tpl->parse('header_column','head_col',True); } - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; @@ -153,7 +152,7 @@ { $hidden_vars .= ' '."\n"; } - $hidden_vars .= ' '; + $hidden_vars .= ' '; $var = Array( 'action_url_button' => $this->page('search'), diff --git a/calendar/templates/verdilak/header.inc.php b/calendar/templates/verdilak/header.inc.php index 2d3c548d6b..73bc0a6dfe 100755 --- a/calendar/templates/verdilak/header.inc.php +++ b/calendar/templates/verdilak/header.inc.php @@ -19,11 +19,10 @@ function add_image_ahref($link,$image,$alt) { - global $GLOBALS; return ''.$alt.''; } - $refer = explode('.',$HTTP_GET_VARS['menuaction']); + $refer = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); $referrer = $refer[2]; $templates = Array( @@ -60,27 +59,27 @@ if($this->bo->check_perms(PHPGW_ACL_PRIVATE)) { $remainder -= 28; - $hidden_vars = ''."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ''."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['matrixtype']) && $HTTP_POST_VARS['matrixtype']) + if(isset($GLOBALS['HTTP_POST_VARS']['matrixtype']) && $GLOBALS['HTTP_POST_VARS']['matrixtype']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_POST_VARS['participants']) && $HTTP_POST_VARS['participants']) + if(isset($GLOBALS['HTTP_POST_VARS']['participants']) && $GLOBALS['HTTP_POST_VARS']['participants']) { - for ($i=0;$i'."\n"; + $hidden_vars .= ' '."\n"; } } if($this->debug) { echo 'Filter = ('.$this->bo->filter.")
\n"; } @@ -103,21 +102,21 @@ if(count($this->bo->grants) > 0) { - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; - if(isset($HTTP_POST_VARS['keywords']) && $HTTP_POST_VARS['keywords']) + if(isset($GLOBALS['HTTP_POST_VARS']['keywords']) && $GLOBALS['HTTP_POST_VARS']['keywords']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } - if(isset($HTTP_GET_VARS['cal_id']) && $HTTP_GET_VARS['cal_id'] != 0) + if(isset($GLOBALS['HTTP_GET_VARS']['cal_id']) && $GLOBALS['HTTP_GET_VARS']['cal_id'] != 0) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $form_options = ''; reset($this->bo->grants); @@ -141,10 +140,10 @@ $tpl->parse('header_column','head_col',True); } - $hidden_vars = ' '."\n"; - if(isset($HTTP_GET_VARS['date']) && $HTTP_GET_VARS['date']) + $hidden_vars = ' '."\n"; + if(isset($GLOBALS['HTTP_GET_VARS']['date']) && $GLOBALS['HTTP_GET_VARS']['date']) { - $hidden_vars .= ' '."\n"; + $hidden_vars .= ' '."\n"; } $hidden_vars .= ' '."\n"; $hidden_vars .= ' '."\n"; @@ -153,7 +152,7 @@ { $hidden_vars .= ' '."\n"; } - $hidden_vars .= ' '; + $hidden_vars .= ' '; $var = Array( 'action_url_button' => $this->page('search'), diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index dd7cf5b2c6..4f12b697cb 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1166,7 +1166,7 @@ function get_email_passwd_ex() { // ---- Create the email Message Class if needed ----- - if (isset($GLOBALS['phpgw']->msg)) + if (is_object($GLOBALS['phpgw']->msg)) { $do_free_me = False; } @@ -1206,7 +1206,7 @@ function create_emailpreferences($prefs='',$accountid='') { // ---- Create the email Message Class if needed ----- - if (isset($GLOBALS['phpgw']->msg)) + if (is_object($GLOBALS['phpgw']->msg)) { $do_free_me = False; }