[Phplib-commit] CVS: php-lib-stable/php page.inc,1.3,1.4
Brought to you by:
nhruby,
richardarcher
From: Layne W. <lay...@us...> - 2002-03-18 18:07:07
|
Update of /cvsroot/phplib/php-lib-stable/php In directory usw-pr-cvs1:/tmp/cvs-serv456/php Modified Files: page.inc Log Message: Fixed page.inc's use of isset($sess|$user) to is_object() - allows the use of variable $user when not using the user class. Index: page.inc =================================================================== RCS file: /cvsroot/phplib/php-lib-stable/php/page.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** page.inc 18 Aug 2001 09:48:10 -0000 1.3 --- page.inc 18 Mar 2002 18:07:02 -0000 1.4 *************** *** 23,27 **** global $auth; ! if (!isset($auth)) { $auth = new $feature["auth"]; } --- 23,27 ---- global $auth; ! if (!is_object($auth)) { $auth = new $feature["auth"]; } *************** *** 33,37 **** global $perm; ! if (!isset($perm)) { $perm = new $feature["perm"]; } --- 33,37 ---- global $perm; ! if (!is_object($perm)) { $perm = new $feature["perm"]; } *************** *** 42,46 **** global $user; ! if (!isset($user)) { $user = new $feature["user"]; } --- 42,46 ---- global $user; ! if (!is_object($user)) { $user = new $feature["user"]; } *************** *** 63,69 **** global $sess, $user; ! if (isset($sess)) { $sess->freeze(); ! if (isset($user)) { $user->freeze(); } --- 63,69 ---- global $sess, $user; ! if (is_object($sess)) { $sess->freeze(); ! if (is_object($user)) { $user->freeze(); } |