Menu

#346 Problem with "global $db"

open
nobody
None
5
2006-01-03
2006-01-03
rr
No

I've another php webapplication running, which are
using a database class in a session var named $db
($_SESSION['db']). If I call this webapp first, logout
and then calling phpBugTracker, i get the following
error if i enter my user name and then hitting the go
button:

Fatal error: Call to undefined function: getrow() in
/usr/share/phpbt-1.0.1/inc/auth.php on line 70

I think the $db class from the other webapp are still
in the session cache and used instead of the
phpBugTracker db class. The other db class did not
have the function getrow().

If i call phpBugTracker from a new browser window,
anything works correctly.

Discussion


Log in to post a comment.