phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.shm.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgwapi/inc class.shm.inc.php
Date: Sun, 01 Oct 2006 14:00:18 +0000

CVSROOT:        /cvsroot/phpgwapi
Module name:    phpgwapi
Changes by:     Dave Hall <skwashd>     06/10/01 14:00:18

Modified files:
        inc            : class.shm.inc.php 

Log message:
        fix notices and wacky logic in delete_key

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.shm.inc.php?cvsroot=phpgwapi&r1=1.10&r2=1.11

Patches:
Index: class.shm.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.shm.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- class.shm.inc.php   26 Sep 2006 16:02:45 -0000      1.10
+++ class.shm.inc.php   1 Oct 2006 14:00:18 -0000       1.11
@@ -63,7 +63,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package phpgwapi
        * @subpackage application
-       * @version $Id: class.shm.inc.php,v 1.10 2006/09/26 16:02:45 Caeies Exp 
$
+       * @version $Id: class.shm.inc.php,v 1.11 2006/10/01 14:00:18 skwashd 
Exp $
        */
 
        //This makes sure there is something set for temp
@@ -241,7 +241,7 @@
                *
                * @todo document me properly
                */
-               function &get_value($key)
+               function get_value($key)
                {
                        $hash_id = $this->hash($key);
                        $value = array('key' => '', 'value' => '');
@@ -257,7 +257,7 @@
                                {
                                        //$this->log_this("no key in hash 
table\n");
                                        $this->close_mem($id);
-                                       return "";
+                                       return '';
                                }
                        }
                        $this->close_mem($id);
@@ -375,12 +375,12 @@
 
                        if(isset($data))
                        {
-                               $v = $data[$key];
+                               $hash_id =& $this->hash($key);
                                $id = $this->mem_exist($this->hash($hash_id));
                                $this->delete_mem($id);
                                $this->close_mem($id);
                                unset($data);
-                               $this->store_value($key, $data);
+                               $this->store_value($key, null);
                        }
                        sem_release($shmid);
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]