A few typos.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-04-20 23:03:09 +00:00
parent 10c6b7ea9c
commit fc932087d4
2 changed files with 3 additions and 3 deletions

View File

@ -412,7 +412,7 @@ function get_commentdata($comment_ID,$no_cache=0,$include_unapproved=false) { //
function get_catname($cat_ID) {
global $tablecategories, $cache_catnames, $wpdb;
if ( !$cache_catnames) ) {
if ( !$cache_catnames ) {
$results = $wpdb->get_results("SELECT * FROM $tablecategories") or die('Oops, couldn\'t query the db for categories.');
foreach ($results as $post) {
$cache_catnames[$post->cat_ID] = $post->cat_name;

View File

@ -113,7 +113,7 @@ function the_category_rss($type = 'rss') {
function get_the_category_by_ID($cat_ID) {
global $tablecategories, $cache_categories, $wpdb;
if ( !$cache_categories[$cat_ID]) ) {
if ( !$cache_categories[$cat_ID] ) {
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
$cache_categories[$cat_ID]->cat_name = $cat_name;
} else {
@ -330,7 +330,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
$link .= '<a href="' . get_category_rss_link(0, $category->cat_ID, $category->category_nicename) . '"';
if (! empty($feed)) {
if ( !empty($feed) ) {
$title = ' title="' . stripslashes($feed) . '"';
$alt = ' alt="' . stripslashes($feed) . '"';
$name = stripslashes($feed);