Fix logic correctly.
authorJan Schneider <jan@horde.org>
Mon, 10 May 2010 12:21:30 +0000 (14:21 +0200)
committerJan Schneider <jan@horde.org>
Mon, 10 May 2010 12:21:30 +0000 (14:21 +0200)
framework/Url/lib/Horde/Url.php

index d2dfc0b..b245189 100644 (file)
@@ -69,9 +69,7 @@ class Horde_Url
             $this->url = $url->url;
             $this->parameters = $url->parameters;
             $this->pathInfo = $url->pathInfo;
-            if (!is_null($raw)) {
-                $this->raw = $url->raw;
-            }
+            $this->raw = is_null($raw) ? $url->raw : $raw;
             return;
         }