diff --git a/calendar/templates/default/header.inc.php b/calendar/templates/default/header.inc.php index 9b48823e80..6f8b08a7ec 100755 --- a/calendar/templates/default/header.inc.php +++ b/calendar/templates/default/header.inc.php @@ -49,7 +49,10 @@ add_col($tpl,' '.add_image_ahref($this->page('year','&date='.$today),'year.gif',lang('This Year')).''); - add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + if(floor(phpversion()) >= 4) + { + add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + } add_col($tpl,' '.add_image_ahref($this->page('matrixselect'),'view.gif',lang('Daily Matrix View')).''); diff --git a/calendar/templates/idsociety/header.inc.php b/calendar/templates/idsociety/header.inc.php index 9b48823e80..6f8b08a7ec 100755 --- a/calendar/templates/idsociety/header.inc.php +++ b/calendar/templates/idsociety/header.inc.php @@ -49,7 +49,10 @@ add_col($tpl,' '.add_image_ahref($this->page('year','&date='.$today),'year.gif',lang('This Year')).''); - add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + if(floor(phpversion()) >= 4) + { + add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + } add_col($tpl,' '.add_image_ahref($this->page('matrixselect'),'view.gif',lang('Daily Matrix View')).''); diff --git a/calendar/templates/justweb/header.inc.php b/calendar/templates/justweb/header.inc.php index 9b48823e80..6f8b08a7ec 100755 --- a/calendar/templates/justweb/header.inc.php +++ b/calendar/templates/justweb/header.inc.php @@ -49,7 +49,10 @@ add_col($tpl,' '.add_image_ahref($this->page('year','&date='.$today),'year.gif',lang('This Year')).''); - add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + if(floor(phpversion()) >= 4) + { + add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + } add_col($tpl,' '.add_image_ahref($this->page('matrixselect'),'view.gif',lang('Daily Matrix View')).''); diff --git a/calendar/templates/verdilak/header.inc.php b/calendar/templates/verdilak/header.inc.php index 9b48823e80..6f8b08a7ec 100755 --- a/calendar/templates/verdilak/header.inc.php +++ b/calendar/templates/verdilak/header.inc.php @@ -49,7 +49,10 @@ add_col($tpl,' '.add_image_ahref($this->page('year','&date='.$today),'year.gif',lang('This Year')).''); - add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + if(floor(phpversion()) >= 4) + { + add_col($tpl,' '.add_image_ahref($this->page('planner','&date='.$today),'planner.gif',lang('Planner')).''); + } add_col($tpl,' '.add_image_ahref($this->page('matrixselect'),'view.gif',lang('Daily Matrix View')).'');