diff --git a/pages/account/17.php b/pages/account/17.php
index 21b60bf..bcec2eb 100644
--- a/pages/account/17.php
+++ b/pages/account/17.php
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
- if(strstr($_SESSION['_config']['agent'], "MSIE")) { ?>
+ if(array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { ?>
diff --git a/pages/account/4.php b/pages/account/4.php
index 029311b..06d24f1 100644
--- a/pages/account/4.php
+++ b/pages/account/4.php
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
- if(strstr($_SESSION['_config']['agent'], "MSIE")) { ?>
+ if(array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { ?>