Code: Select all
require("e;common_inc.php"e;);
// List all projects if the user is an admin or accountant
if ($tmsh->user_level=="e;Admin"e; || $tmsh->user_level=="e;Acctg"e;) {
$project=$tmsh->getProjects($order,$desc); //note that added user level is "e;Accountant"e; I believe, not "e;Acctg"e; -- for future reference when upgrading the permission tables -- james@jenxnetwork.com
}
// or else list only the projects the user is supposed to see.
else {
$a_user=$tmsh->user_id;
$project=$tmsh->getProjects($order,$desc,$a_user); // this line is causing the error when adding a new project.
}Code: Select all
require ($lib_dir . "e;timesheet.class.php"e;);
if (!isset($login_page_flag))
{
session_start();
if (!isset($session_login)) header("e;Location: message.php"e;);
else $tmsh = new TimeSheet($session_login,0);
}Call to a member function on a non-object
The line that is causing this has been narrowed down to the one indicated in foo.php with the obvious comment. The other calls to the class function run fine, but my debugging is saying that this line is causing it.
Thoughts?