[PHPLIB-DEV] cvs commit From: kk (phplib-dev <email protected>)
Date: 02/14/00

From: kk
Date: Mon Feb 14 11:08:03 2000
Modified files:
      php-lib/php/session.inc

Log message:
Small session problem with uninitialized variable.

Index: php-lib/php/session.inc
diff -u php-lib/php/session.inc:1.58 php-lib/php/session.inc:1.59
--- php-lib/php/session.inc:1.58 Tue Jan 25 04:55:32 2000
+++ php-lib/php/session.inc Mon Feb 14 11:07:32 2000
@@ -5,7 +5,7 @@
  * Copyright (c) 1998,1999 NetUSE GmbH
  * Boris Erdmann, Kristian Koehntopp
  *
- * $Id: session.inc,v 1.58 2000/01/25 03:55:32 chagenbu Exp $
+ * $Id: session.inc,v 1.59 2000/02/14 10:07:32 kk Exp $
  *
  */
 
@@ -93,7 +93,7 @@
  
     $this->name = $this->cookiename==""?$this->classname:$this->cookiename;
  
- if ( "" == $id ) {
+ if ( !isset($id) or ("" == $id) ) {
       $newid=false;
       switch ($this->mode) {
         case "get":

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.