[pLog-svn] r2890 - plog/trunk/class/cache

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Feb 3 13:55:49 GMT 2006


Author: jondaley
Date: 2006-02-03 13:55:49 +0000 (Fri, 03 Feb 2006)
New Revision: 2890

Modified:
   plog/trunk/class/cache/cache.class.php
Log:
force a string, rather than relying on php's auto-type.  http://bugs.lifetype.net/view.php?id=821

Modified: plog/trunk/class/cache/cache.class.php
===================================================================
--- plog/trunk/class/cache/cache.class.php	2006-02-03 13:51:21 UTC (rev 2889)
+++ plog/trunk/class/cache/cache.class.php	2006-02-03 13:55:49 UTC (rev 2890)
@@ -32,7 +32,7 @@
                 if( DEBUG_ENABLED && DEBUG_CHANNELS & DEBUG_CHANNEL_CACHE )
                     $this->debug->log("Caching $id ($group):" . $data , LOGGER_PRIO_INFO );
 
-                return $this->cache->save( $data, $id, $group );
+                return $this->cache->save( $data, $id, "$group" );
             } else
                 return true;
         }
@@ -51,7 +51,7 @@
 				$currentData = $this->getData( $id, $group );
 				if( !$currentData ) $currentData = Array();
 				$currentData[] = $data;
-                return $this->cache->save( $currentData, $id, $group );
+                return $this->cache->save( $currentData, $id, "$group" );
             } else
                 return true;
 			



More information about the pLog-svn mailing list