From 3408ed48ba66db8d93207507777be42759f7eb0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 20 Sep 2013 14:09:26 +0200 Subject: [PATCH] fix bug #225: blank page on article page --- inc/poche/Poche.class.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 18860dd..561de80 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -381,17 +381,17 @@ class Poche $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8'); $tidy->cleanRepair(); $content = $tidy->value; - - # flattr checking - $flattr = new FlattrItem(); - $flattr->checkItem($entry['url']); - - $tpl_vars = array( - 'entry' => $entry, - 'content' => $content, - 'flattr' => $flattr - ); } + + # flattr checking + $flattr = new FlattrItem(); + $flattr->checkItem($entry['url']); + + $tpl_vars = array( + 'entry' => $entry, + 'content' => $content, + 'flattr' => $flattr + ); } else { Tools::logm('error in view call : entry is null');