Even if there is an comment, waiting vor approval within comments-section, it isn't shown in dashboard
serendipity_event_dashboard version 0.6.2
Serendipity 1.6
Code: Select all
ORDER BY
" . ($where != '' ? '' : 'co.id') . " " . ($order != '' ? $order : '') . "
Code: Select all
SELECT ... FROM ... WHERE ... ORDER BY;Ok, I committed the update, it should be available via Spartacus tomorrow. If it doesn't fix your problem, please do tellbernd_d wrote:Thank you for your answersSo i'll wait for an update of dashboard.
I stumbled on the same part of code. It is in fact the case, that $order is ignored if no $where is given, what seemed wrong to me, as you may want to order by date ASC or DESC in example but don't need no $where.. (well I wanted this..garvinhicking wrote: believe the code currently suggest that order can only be used, if where is also used...
Code: Select all
ORDER BY
" . ($where != '' ? '' : 'co.id') . " " . ($order != '' ? $order : '') . "
Code: Select all
ORDER BY
" . (empty($order) ? 'co.id' : $order) . "
Code: Select all
ORDER BY
" . ($order != '' ? '' : 'co.id') . " " . ($order != '' ? $order : '') . "