summaryrefslogtreecommitdiff
path: root/pages/index/0.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index/0.php')
-rw-r--r--pages/index/0.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pages/index/0.php b/pages/index/0.php
index 805b147..76dcd28 100644
--- a/pages/index/0.php
+++ b/pages/index/0.php
@@ -41,6 +41,7 @@
$query = "//channel/item";
$items = $xpath->query($query);
+ $count = 0;
foreach($items as $id => $item) {
$query = "./title";
$nodeList = $xpath->query($query, $item);
@@ -61,6 +62,11 @@
$title = '';
$description = '';
$link = '';
+
+ count++;
+ if ($count >= 3) {
+ break;
+ }
}
?>