From 840d33bbc884b13f68f76b9f130148fb8c09da62 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 2 Sep 2001 07:27:17 +0000 Subject: [PATCH] GLOBAL'ed the variable. --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 844a252086..1197a9dad5 100755 --- a/index.php +++ b/index.php @@ -50,10 +50,10 @@ Header('Location: ' . $GLOBALS['phpgw']->link('/home.php')); } - $obj = CreateObject(sprintf('%s.%s',$app,$class)); - if ((is_array($obj->public_functions) && $obj->public_functions[$method]) && ! $invalid_data) + $GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$app,$class)); + if ((is_array($GLOBALS['obj']->public_functions) && $GLOBALS['obj']->public_functions[$method]) && ! $invalid_data) { - eval("\$obj->$method();"); + eval("\$GLOBALS['obj']->$method();"); } else { @@ -72,3 +72,4 @@ } $GLOBALS['phpgw']->common->phpgw_footer(); +?>