Close #510
[platal.git] / include / rss.inc.php
index a52bfbe..41ede2c 100644 (file)
@@ -59,7 +59,9 @@ function init_rss($template, $alias, $hash, $require_uid = true)
         }
     }
 
-    header('Content-Type: application/rss+xml; charset=utf8');
+    if ($template) {
+        header('Content-Type: application/rss+xml; charset=utf8');
+    }    
     return $uid;
 }