From 2b302cfccd0cd4191f1f48b0540f623c06621b32 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 15 Apr 2011 21:53:55 +0000 Subject: [PATCH] (follow-up r86121) Use strict comparision. Third times the charm... --- includes/CategoryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1