diff --git a/src/admin/member_operations.php b/src/admin/member_operations.php index 9f419d9c..7c99b52e 100644 --- a/src/admin/member_operations.php +++ b/src/admin/member_operations.php @@ -14,7 +14,8 @@ DedeSetCookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); require_once(DEDEINC.'/datalistcp.class.php'); if (empty($buyid)) $buyid = ''; $buyid = HtmlReplace($buyid , 1); -$sta = HtmlReplace($sta , 1); +$sta = ''; //初始化$sta变量,感谢:乖乖女 +$sta = HtmlReplace($sta, 1); $addsql = " WHERE buyid LIKE '%$buyid%' "; if (!empty($sta)) $addsql .= " AND sta='$sta' "; $sql = "SELECT * FROM `#@__member_operation` $addsql ORDER BY aid DESC"; diff --git a/src/admin/statistics_list.php b/src/admin/statistics_list.php index 29e7031f..41467b60 100644 --- a/src/admin/statistics_list.php +++ b/src/admin/statistics_list.php @@ -24,13 +24,15 @@ function RenderUrlType($t) { return "综合"; } } -//检查权限 -if ($id == 0 && $reid == 0) { - CheckPurview('c_List'); +//检查权限,感谢:乖乖女 +if (isset($id) && isset($reid)) { + if ($id == 0 && $reid == 0) { + CheckPurview('c_List'); + } } $ip = isset($ip) ? HtmlReplace(trim($ip)) : ''; if (empty($mobile)) $mobile = ''; -if ($dopost == "delete") { +if (isset($dopost) && $dopost == "delete") { $ids = explode('`',$aids); $dquery = ""; foreach ($ids as $id) diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index e486529d..50272a24 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -23,7 +23,7 @@
diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm index b89574c3..8c8c504c 100644 --- a/src/admin/templets/archives_edit.htm +++ b/src/admin/templets/archives_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/archives_sg_edit.htm b/src/admin/templets/archives_sg_edit.htm index 413e87e9..c70a8ff1 100644 --- a/src/admin/templets/archives_sg_edit.htm +++ b/src/admin/templets/archives_sg_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/article_edit.htm b/src/admin/templets/article_edit.htm index 6a68f4a9..4d916c6e 100644 --- a/src/admin/templets/article_edit.htm +++ b/src/admin/templets/article_edit.htm @@ -22,7 +22,7 @@
diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index fbedb490..ce7d2525 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -37,7 +37,7 @@
diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php index e9dfb5ed..b14f69c7 100755 --- a/src/system/helpers/channelunit.helper.php +++ b/src/system/helpers/channelunit.helper.php @@ -142,7 +142,7 @@ if (!function_exists('GetTypeUrl')) { if ($isdefault == -1) { if ($cfg_rewrite == 'Y') { //开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 - $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid.""; + $reurl = $GLOBALS['cfg_cmspath']."/list-".$typeid; } else { $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; }