Merge branch 'regs' into 3.6

This commit is contained in:
Romain Neutron
2012-01-04 18:08:33 +01:00
6 changed files with 33 additions and 27 deletions

View File

@@ -1179,7 +1179,9 @@ class record_adapter implements record_Interface, cache_cacheableInterface
foreach ($mandatoryParams as $param)
{
if (!array_key_exists($param, $params))
throw new Exception_InvalidArgument();
{
throw new Exception_InvalidArgument(sprintf('Invalid metadata, missing key %s', $param));
}
}
if (!is_array($params['value']))