Re: [Phplib-users] Problem with "user" feature
Brought to you by:
nhruby,
richardarcher
|
From: Joe S. <jo...@be...> - 2001-11-05 06:14:20
|
Change if (isset($user)) { to:
if (is_object($user)) {
Joe
On Mon, Nov 05, 2001 at 12:24:03AM -0300, Manuel Aristaran wrote:
> Hello...
>
> I've run into a quite interesting problem....
>
> None of the scripts on the system use the "user" feature, every page_open()
> call on them look like this:
>
> page_open(array("sess" => "Gili_Session"));
>
> That is, i only use sessions :). But there's a script that complains about
> calling a function on a non-object variable when i call page_close(). the
> error occurs in page.inc line 68.
>
> function page_close() {
> global $sess, $user;
>
> if (isset($sess)) {
> $sess->freeze();
> if (isset($user)) {
> $user->freeze(); <-- LINE 68
> }
> }
> }
>
> isset($user) should yield non-true, as i don't use the user feature.
> There aren't any variables called $user on my scripts, as this might look
> like two variables are clashing on a same namespace or something.
>
> Can anyone give me any pointer? this problem (bug?) is really annoying.
>
>
> Manuel Aristarán
> mpa...@so...
>
>
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
|