From: Brian Wolff Date: Fri, 15 Apr 2011 21:53:55 +0000 (+0000) Subject: (follow-up r86121) Use strict comparision. X-Git-Tag: 1.31.0-rc.0~30815 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=2b302cfccd0cd4191f1f48b0540f623c06621b32;p=lhc%2Fweb%2Fwiklou.git (follow-up r86121) Use strict comparision. Third times the charm... --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 3b4d52cb42..3568d89bd2 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -365,10 +365,10 @@ class CategoryViewer { $count = 0; foreach ( $res as $row ) { $title = Title::newFromRow( $row ); - if ( !$row->cl_collation ) { + if ( $row->cl_collation === '' ) { // Hack to make sure that while updating from 1.16 schema // and db is inconsistent, that the sky doesn't fall. - // See r83544. Could perhaps be removed in a couple versions (?) + // See r83544. Could perhaps be removed in a couple decades... $humanSortkey = $row->cl_sortkey; } else { $humanSortkey = $title->getCategorySortkey( $row->cl_sortkey_prefix );