Include update date in atom feed regardless of the number of entries
[gitphp.git] / templates / atom.tpl
blob:a/templates/atom.tpl -> blob:b/templates/atom.tpl
--- a/templates/atom.tpl
+++ b/templates/atom.tpl
@@ -12,7 +12,7 @@
   <link href="{geturl fullurl=true project=$project}"/>
   <link rel="self" href="{geturl fullurl=true project=$project action=atom}"/>
   <id>{geturl fullurl=true project=$project}</id>
-  {if $log->GetCount()>0}
+  {if $log->GetHead()}
   <updated>{$log->GetHead()->GetCommitterEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}</updated>
   {/if}
 

comments