diff --git a/lib/config/sfCacheConfigHandler.class.php b/lib/config/sfCacheConfigHandler.class.php index 45b87138f..0a9d10bf7 100644 --- a/lib/config/sfCacheConfigHandler.class.php +++ b/lib/config/sfCacheConfigHandler.class.php @@ -92,7 +92,7 @@ protected function addCache($actionName = '') $lifeTime = !$enabled ? '0' : $this->getConfigValue('lifetime', $actionName, '0'); // client_lifetime - $clientLifetime = !$enabled ? '0' : $this->getConfigValue('client_lifetime', $actionName, $lifeTime, '0'); + $clientLifetime = !$enabled ? '0' : $this->getConfigValue('client_lifetime', $actionName, $lifeTime); // contextual $contextual = $this->getConfigValue('contextual', $actionName) ? 'true' : 'false'; diff --git a/lib/form/sfForm.class.php b/lib/form/sfForm.class.php index 16f23893f..4219541af 100644 --- a/lib/form/sfForm.class.php +++ b/lib/form/sfForm.class.php @@ -47,7 +47,7 @@ class sfForm implements ArrayAccess, Iterator, Countable protected $isBound = false; protected $taintedValues = array(); protected $taintedFiles = array(); - protected $values; + protected $values = array(); protected $defaults = array(); protected $fieldNames = array(); protected $options = array();