Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / syndicate.php
index a9febca7b446b03c631aab5ce09ec7f4d251f692..5131e25fa4ae2818ca3bc59b52a644aa66b0e609 100644 (file)
@@ -2,7 +2,7 @@
 /*=====================================================================*\
 || ###################################################################
 || # Bugdar
-|| # Copyright ©2002-2007 Blue Static
+|| # Copyright (c)2004-2009 Blue Static
 || #
 || # This program is free software; you can redistribute it and/or modify
 || # it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ $bugs_fetch = $db->query("
        ORDER BY " . (can_perform('canviewhidden', 0, fetch_guest_user()) ? "bug.lastposttime" : "bug.hiddenlastposttime") . " DESC
        LIMIT " . bugdar::$options['syndicateditems']
 );
-while ($bug = $db->fetch_array($bugs_fetch))
+foreach ($bugs_fetch as $bug)
 {
        $syndicate .= '
        <entry>
@@ -105,10 +105,4 @@ echo '
 
 </feed>';
 
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
 ?>
\ No newline at end of file