diff --git a/admin/themes/simplebootx/Portal/AdminPost/index.html b/admin/themes/simplebootx/Portal/AdminPost/index.html
index bf7c5e8a..9bfd125c 100644
--- a/admin/themes/simplebootx/Portal/AdminPost/index.html
+++ b/admin/themes/simplebootx/Portal/AdminPost/index.html
@@ -68,7 +68,7 @@
{$vo.post_title}
-
{$vo.user_nicename|default=$vo.user_login} |
+ {$vo.user_nicename|default=$vo['user_login']} |
{$vo.post_hits} |
diff --git a/admin/themes/simplebootx/Portal/AdminPost/recyclebin.html b/admin/themes/simplebootx/Portal/AdminPost/recyclebin.html
index e2df9747..3fc57742 100644
--- a/admin/themes/simplebootx/Portal/AdminPost/recyclebin.html
+++ b/admin/themes/simplebootx/Portal/AdminPost/recyclebin.html
@@ -47,7 +47,7 @@
|
{$vo.id} |
{$vo.post_title} |
- {$vo.user_nicename|default=$vo.user_login} |
+ {$vo.user_nicename|default=$vo['user_login']} |
{$vo.post_hits} |
diff --git a/application/Admin/Controller/MenuController.class.php b/application/Admin/Controller/MenuController.class.php
index 8d743e73..ae2c4d8d 100644
--- a/application/Admin/Controller/MenuController.class.php
+++ b/application/Admin/Controller/MenuController.class.php
@@ -114,7 +114,7 @@ public function add_post() {
$menu_name=I("post.name");
$mwhere=array("name"=>$name);
- $find_rule_count=$this->auth_rule_model->where($mwhere)->count();
+ $find_rule_count=(int)$this->auth_rule_model->where($mwhere)->count();
if($find_rule_count===0){
$this->auth_rule_model->add(array("name"=>$name,"module"=>$app,"type"=>"admin_url","title"=>$menu_name));//type 1-admin rule;2-user rule
}
@@ -181,7 +181,7 @@ public function edit_post() {
$menu_name=I("post.name");
$mwhere=array("name"=>$name);
- $find_rule_count=$this->auth_rule_model->where($mwhere)->count();
+ $find_rule_count=(int)$this->auth_rule_model->where($mwhere)->count();
if($find_rule_count===0){
$this->auth_rule_model->add(array("name"=>$name,"module"=>$app,"type"=>"admin_url","title"=>$menu_name));//type 1-admin rule;2-user rule
}else{
| |