修复导致服务器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

@@ -106,10 +106,10 @@ if ($do == 'del') {
updateFeed($id, $url, $title);
header("Location:plugin.php?plugin=lastRSS&setting=true");
} else {
formMsg("RSS修改失败插件无法获取{$url}的标题请自行添加标题再添加该RSS",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS修改失败插件无法获取{$url}的标题请自行添加标题再添加该RSS");
}
} else {
formMsg("RSS修改失败RSS地址不能为空",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS修改失败RSS地址不能为空");
}
} elseif ($do == 'add') {
$url = isset($_POST['url']) ? trim($_POST['url']) : '';
@@ -121,10 +121,10 @@ if ($do == 'del') {
updateLogs();
header("Location:plugin.php?plugin=lastRSS&setting=true");
} else {
formMsg("RSS导入失败插件无法获取{$url}的标题请自行添加标题再导入该RSS",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS导入失败插件无法获取{$url}的标题请自行添加标题再导入该RSS");
}
} else {
formMsg("RSS导入失败RSS地址不能为空",'./plugin.php?plugin=lastRSS',0);
emMsg("RSS导入失败RSS地址不能为空");
}
} elseif ($do == 'config') {
$lastRSS_cache_time = isset($_POST['lastRSS_cache_time']) ? intval($_POST['lastRSS_cache_time']) : 0;