Unverified Commit 118e0e6a by Scott Committed by GitHub

Merge pull request #736 from pupi1985/patch-127

Fix failing query
parents 7763be86 69a992dc
......@@ -347,7 +347,7 @@ function qa_db_qs_selectspec($voteuserid, $sort, $start, $categoryslugs = null,
$type = $specialtype ? 'Q_HIDDEN' : 'Q'; // for backwards compatibility
}
$count = isset($count) ? min($count, QA_DB_RETRIEVE_QS_AS) : QA_DB_RETRIEVE_QS_AS;
$count = isset($count) ? min((int)$count, QA_DB_RETRIEVE_QS_AS) : QA_DB_RETRIEVE_QS_AS;
switch ($sort) {
case 'acount':
......
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