Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/themes/simplebootx/Portal/AdminPost/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{$vo.post_title}
</notempty>
</td>
<td>{$vo.user_nicename|default=$vo.user_login}</td>
<td>{$vo.user_nicename|default=$vo['user_login']}</td>
<td>{$vo.post_hits}</td>
<td>
<notempty name="vo.comment_count">
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/simplebootx/Portal/AdminPost/recyclebin.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[{$vo.id}]" value="{$vo.id}"></td>
<td><b>{$vo.id}</b></td>
<td>{$vo.post_title}</td>
<td>{$vo.user_nicename|default=$vo.user_login}</td>
<td>{$vo.user_nicename|default=$vo['user_login']}</td>
<td>{$vo.post_hits}</td>
<td>
<notempty name="vo.comment_count">
Expand Down
4 changes: 2 additions & 2 deletions application/Admin/Controller/MenuController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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{
Expand Down