Skip to content

Commit

Permalink
Fixed errors with MySQL-5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 9, 2017
1 parent 10c3870 commit ef5b7de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugins/staticpages/functions.inc
Expand Up @@ -302,6 +302,7 @@ function SP_countVisiblePages()
* @param array $A static page data
* @param string $comment_order sorting of comments
* @param string $comment_mode comment mode (nested, flat, etc.)
* @param int $comment_page
* @param int $msg optional message number
* @param string $query optional search query string to highlight
* @return string HTML for the static page
Expand Down Expand Up @@ -1742,6 +1743,7 @@ function SP_render_content($sp_id, $sp_content, $sp_php, $cache_time = 0, $templ
foreach ($tag as &$value) {
$value = PLG_replaceTags($value);
}
unset($value);

$args = array(
'sp_id' => $template_id,
Expand Down
5 changes: 4 additions & 1 deletion plugins/staticpages/services.inc.php
Expand Up @@ -745,7 +745,10 @@ function service_get_staticpages($args, &$output, &$svc_msg)
$topic_perms .= " OR (ta.tid = '" . TOPIC_HOMEONLY_OPTION . "' OR ta.tid = '" . TOPIC_ALL_OPTION . "'))";
}
}
$topic_perms .= " GROUP BY sp_id";
$topic_perms .= " GROUP BY sp_id, sp_title, sp_page_title, sp_content, sp_onhits, sp_onlastupdate, sp_hits, "
. "created, modified, sp_format, commentcode, meta_description, meta_keywords, template_flag, template_id, "
. "draft_flag, owner_id, group_id, perm_owner, perm_group, perm_members, perm_anon, sp_help, sp_php, "
. "sp_inblock,cache_time";

$sql = array();
$sql['mysql'] = "SELECT sp_id,sp_title,sp_page_title,sp_content,sp_onhits,sp_onlastupdate,sp_hits,created,modified,sp_format,"
Expand Down

0 comments on commit ef5b7de

Please sign in to comment.