fix object identifier presence

This commit is contained in:
Manuel Raynaud
2013-12-16 15:53:02 +01:00
parent d6ba2b3d65
commit 30eab4f416
2 changed files with 2 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ trait UrlRewritingTrait {
public function setRewrittenUrl($locale, $url)
{
$currentUrl = $this->getRewrittenUrl($locale);
if($currentUrl == $url) {
if($currentUrl == $url || null === $url) {
/* no url update */
return $this;
}