Author: Jonathan.Wage
Date: 2010-02-10 17:08:53 +0100 (Wed, 10 Feb 2010)
New Revision: 27822

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalMenuPlugin/lib/menu/sfSympalMenuSiteManager.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue where rootSlugs is not an array


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalMenuPlugin/lib/menu/sfSympalMenuSiteManager.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalMenuPlugin/lib/menu/sfSympalMenuSiteManager.class.php
      2010-02-10 16:08:20 UTC (rev 27821)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalMenuPlugin/lib/menu/sfSympalMenuSiteManager.class.php
      2010-02-10 16:08:53 UTC (rev 27822)
@@ -16,9 +16,11 @@
   {
     if ($cache = $this->_getCache())
     {
-      $this->_rootSlugs = $cache->get('SYMPAL_MENU_ROOT_SLUGS');
-      if (!is_array($this->_rootSlugs))
+      $cachedRootSlugs = $cache->get('SYMPAL_MENU_ROOT_SLUGS');
+      if (is_array($cachedRootSlugs))
       {
+        $this->_rootSlugs = $cachedRootSlugs;
+      } else {
         $this->initialize();
       }
     }

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to