Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r20119: LJSV-1810: Unable to process suspicious ...

Committer: mchervonniy
LJSV-1810: Unable to process suspicious comments in Refried Paper style
U   trunk/bin/upgrading/s2layers/refriedpaper/layout.s2
Modified: trunk/bin/upgrading/s2layers/refriedpaper/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/refriedpaper/layout.s2	2011-09-23 03:46:07 UTC (rev 20118)
+++ trunk/bin/upgrading/s2layers/refriedpaper/layout.s2	2011-09-23 04:15:37 UTC (rev 20119)
@@ -830,10 +830,12 @@
   }
   foreach var string link_key ($.link_keyseq) {
     var Link link = $this->get_link($link_key);
-    $url          = $link.url;
-    $text         = $texts{$link_key} != "" ? $texts{$link_key} : $link.caption;
-    if($url != "") {
-      $linkbar = $linkbar + """<a href="$url">$text</a>$btwn_comments""";
+    if (defined $link) {
+      $url          = $link.url;
+      $text         = $texts{$link_key} != "" ? $texts{$link_key} : $link.caption;
+      if($url != "") {
+        $linkbar = $linkbar + """<a href="$url">$text</a>$btwn_comments""";
+      }
     }
   }
   $url     = $.permalink_url;

Tags: fiskus_boulder, livejournal, s2
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments