Index: l10n_community.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/l10n_server/l10n_community/Attic/l10n_community.module,v
retrieving revision 1.1.2.23.2.7
diff -u -p -r1.1.2.23.2.7 l10n_community.module
--- l10n_community.module	24 Oct 2008 18:04:28 -0000	1.1.2.23.2.7
+++ l10n_community.module	24 Oct 2008 21:40:33 -0000
@@ -1023,7 +1023,7 @@ function l10n_community_get_stats($langc
   if (!empty($langcode)) {
     // Compute based on langcode.
     if ($stats = cache_get('l10n:stats:'. $langcode, 'cache')) {
-      return unserialize($stats->data);
+      return $stats->data;
     }
     else {
       $stats = array();
@@ -1034,14 +1034,14 @@ function l10n_community_get_stats($langc
       
       // Cache results for next time. Not setting a timestamp as cache validity
       // time, we would like to retain control of recalculating these values.
-      cache_set('l10n:stats:'. $langcode, 'cache', serialize($stats), CACHE_PERMANENT);
+      cache_set('l10n:stats:'. $langcode, $stats, 'cache', CACHE_PERMANENT);
       return $stats;
     }
   }
   else {
     // General community statistics.
     if ($stats = cache_get('l10n:stats', 'cache')) {
-      return unserialize($stats->data);
+      return $stats->data;
     }
     else {
       $stats = array();
@@ -1054,7 +1054,7 @@ function l10n_community_get_stats($langc
 
       // Cache results for next time. Not setting a timestamp as cache validity
       // time, we would like to retain control of recalculating these values.
-      cache_set('l10n:stats', 'cache', serialize($stats), CACHE_PERMANENT);
+      cache_set('l10n:stats', $stats, 'cache', CACHE_PERMANENT);
       return $stats;
     }
   }
