[geeklog-cvs] geeklog: Reverted part of changeset e26d5f2652f6, this makes nul...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon May 31 18:12:44 EDT 2010
changeset 7948:617729a5d101
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/617729a5d101
user: Sami Barakat <sami at sbarakat.co.uk>
date: Mon May 31 23:04:10 2010 +0100
description:
Reverted part of changeset e26d5f2652f6, this makes null fields appear at the bottom of the results page when ordering (eg. hits in FAQ)
diffstat:
system/classes/listfactory.class.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r c6f77e3965cc -r 617729a5d101 system/classes/listfactory.class.php
--- a/system/classes/listfactory.class.php Mon May 31 22:58:43 2010 +0100
+++ b/system/classes/listfactory.class.php Mon May 31 23:04:10 2010 +0100
@@ -558,7 +558,8 @@
$direction = $this->_sort_arr['direction'] == 'asc' ? SORT_ASC : SORT_DESC;
$column = array();
foreach ($rows_arr as $sortarray) {
- $column[] = strip_tags($sortarray[ $this->_sort_arr['field'] ]);
+ $c = strip_tags($sortarray[ $this->_sort_arr['field'] ]);
+ $column[] = $c == 'LF_NULL' ? '0' : $c;
}
array_multisort($column, $direction, $rows_arr);
More information about the geeklog-cvs
mailing list