Author: fabien
Date: 2010-05-19 15:08:37 +0200 (Wed, 19 May 2010)
New Revision: 29527

Modified:
   branches/1.3/lib/view/sfViewCacheManager.class.php
   branches/1.4/lib/view/sfViewCacheManager.class.php
Log:
[1.3, 1.4] fixed notices in sfViewCacheManager::isCacheable() (closes #8527)

Modified: branches/1.3/lib/view/sfViewCacheManager.class.php
===================================================================
--- branches/1.3/lib/view/sfViewCacheManager.class.php  2010-05-19 13:06:40 UTC 
(rev 29526)
+++ branches/1.3/lib/view/sfViewCacheManager.class.php  2010-05-19 13:08:37 UTC 
(rev 29527)
@@ -427,6 +427,11 @@
 
     list($route_name, $params) = 
$this->controller->convertUrlStringToParameters($internalUri);
 
+    if (!isset($params['module']))
+    {
+        return false;
+    }
+
     $this->registerConfiguration($params['module']);
 
     if (isset($this->cacheConfig[$params['module']][$params['action']]))

Modified: branches/1.4/lib/view/sfViewCacheManager.class.php
===================================================================
--- branches/1.4/lib/view/sfViewCacheManager.class.php  2010-05-19 13:06:40 UTC 
(rev 29526)
+++ branches/1.4/lib/view/sfViewCacheManager.class.php  2010-05-19 13:08:37 UTC 
(rev 29527)
@@ -427,6 +427,11 @@
 
     list($route_name, $params) = 
$this->controller->convertUrlStringToParameters($internalUri);
 
+    if (!isset($params['module']))
+    {
+        return false;
+    }
+
     $this->registerConfiguration($params['module']);
 
     if (isset($this->cacheConfig[$params['module']][$params['action']]))

-- 
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