修复导致服务器500错误的bug

This commit is contained in:
2012-10-18 11:28:34 +08:00
parent 3e7dad0914
commit 510e6adcc6
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Rss订阅
Version: 1.3.1
Version: 1.3.2
Plugin URL: http://xiaosong.org/tech/the-official-releas-of-rss-subscribe-plugin
Description: 订阅朋友的博客feed显示在自己博客~
Author: 小松
@@ -73,9 +73,9 @@ function insertFeed($url, $title){
if (isFeedExists($url) == 0) {
$DB->query("INSERT INTO ".DB_PREFIX."rssfeeds (url, title) VALUES('$url', '$title')");
} elseif (!getTitle($url)) {
formMsg("RSS导入失败RSS地址{$url}解析失败请确定RSS地址及XML文件格式正确",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS导入失败RSS地址{$url}解析失败请确定RSS地址及XML文件格式正确");
} else {
formMsg("RSS导入失败数据库中已存在{$url}",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS导入失败数据库中已存在{$url}");
}
}
function deleteFeed($id){