[Jifty-commit] r4875 - in jifty/trunk: lib/Jifty/Web

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Jan 18 01:43:15 EST 2008


Author: trs
Date: Fri Jan 18 01:43:14 2008
New Revision: 4875

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Web/Menu.pm

Log:
 r31087 at zot:  tom | 2008-01-18 01:42:27 -0500
 Don't try to make undef urls absolute


Modified: jifty/trunk/lib/Jifty/Web/Menu.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Menu.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Menu.pm	Fri Jan 18 01:43:14 2008
@@ -109,7 +109,7 @@
     $self->{url} = shift if @_;
 
     $self->{url} = URI->new_abs($self->{url}, $self->parent->url . "/")->as_string
-      if $self->parent and $self->parent->url;
+      if defined $self->{url} and $self->parent and $self->parent->url;
 
     $self->{url} =~ s!///!/! if $self->{url};
 


More information about the Jifty-commit mailing list