<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>2097 Test Drive &#187; error</title>
	<link>http://www.2097racing.com/wordpress</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 08 Mar 2008 18:24:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Fixed error in tag listing.</title>
		<link>http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/</link>
		<comments>http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 23:18:44 +0000</pubDate>
		<dc:creator>joecentric</dc:creator>
		
		<category><![CDATA[squible-beta2]]></category>

		<category><![CDATA[coding]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[Php]]></category>

		<category><![CDATA[squible]]></category>

		<category><![CDATA[tags]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/</guid>
		<description><![CDATA[Just fixed an error in a foreach() call in the new jwr_show_tags() function in Squible&#8217;s wp_cats_as_tags().  Turns out that, for unknown reasons, the old implementation would barf when it saw a post without any tags, when get_the_tags() returned an empty list.  Thanks to the examples described here, I&#8217;m using an if() to bail [...]]]></description>
			<content:encoded><![CDATA[<p>Just fixed an error in a foreach() call in the new jwr_show_tags() function in Squible&#8217;s wp_cats_as_tags().  Turns out that, for unknown reasons, the old implementation would barf when it saw a post without any tags, when get_the_tags() returned an empty list.  Thanks to the examples described <a href="http://wordpress.org/support/topic/122141">here</a>, I&#8217;m using an if() to bail out of the function:<br />
<code><br />
if (empty($posttags)) echo "";<br />
else<br />
foreach<br />
</code></p>
<p>The old way to do this was to throw a break at the end of the function using an if() to check the size of the list:</p>
<p><code>if ( $displaycount == $limit) {break;}</code></p>
<p>Anyway, it works now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
