From 70c39d16185698c0cc937cc4104694cd97e36d33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Aug 2013 21:07:32 +0200 Subject: [PATCH] tabs2spaces --- inc/poche/Url.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php index 36fdd0f5..3c74fb43 100644 --- a/inc/poche/Url.class.php +++ b/inc/poche/Url.class.php @@ -65,13 +65,14 @@ class Url $tidy = tidy_parse_string($html, array(), 'UTF8'); $tidy->cleanRepair(); - //Warning: tidy might fail so, ensure there is still a content - $body = $tidy->body(); + //Warning: tidy might fail so, ensure there is still a content + $body = $tidy->body(); - //hasChildren does not seem to work, just check the string - //returned (and do not forget to clean the white spaces) - if (preg_replace('/\s+/', '', $body->value) !== "") - $html = $tidy->value; + //hasChildren does not seem to work, just check the string + //returned (and do not forget to clean the white spaces) + if (preg_replace('/\s+/', '', $body->value) !== "") { + $html = $tidy->value; + } } $parameters = array(); -- 2.41.0