Commit b79c872d authored by Nigel McNie's avatar Nigel McNie
Browse files

MySQL fix - COUNT(alias.*) is a syntax error for the poor baby. COUNT(*) seems to work ok.

parent cbd79ae1
......@@ -440,7 +440,7 @@ class View {
public static function build_category_list($defaultcategory, View $view, $new=0) {
require_once(get_config('docroot') . '/blocktype/lib.php');
// Change to a left join to show tabs with no results
$cats = get_records_sql_array('SELECT, COUNT(bic.*) AS "count"
$cats = get_records_sql_array('SELECT, COUNT(*) AS "count"
FROM {blocktype_category} bc
INNER JOIN {blocktype_installed_category} bic ON ( = bic.category)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment