]> git.deb.at Git - pkg/blosxom.git/commitdiff
Avoid "conditional and" for fixing $depth
authorBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 05:52:10 +0000 (05:52 +0000)
committerBarijaona Ramaholimihaso <barijaona@users.sourceforge.net>
Sat, 22 Sep 2007 05:52:10 +0000 (05:52 +0000)
blosxom.cgi

index 0182001a89cb435569319d82ee6076fb8eb7e57d..1adc8ef49d404072c39ac1e7ce6554dbef5c3646 100755 (executable)
@@ -137,7 +137,7 @@ $url =~ s!/$!!;
 $datadir =~ s!/$!!; $plugin_dir =~ s!/$!!; $static_dir =~ s!/$!!;
   
 # Fix depth to take into account datadir's path
-$depth and $depth += ($datadir =~ tr[/][]) - 1;
+$depth += ($datadir =~ tr[/][]) - 1 if $depth;
 
 # Global variable to be used in head/foot.{flavour} templates
 $path_info = '';