(follow-up r86121) Use strict comparision.
authorBrian Wolff <bawolff@users.mediawiki.org>
Fri, 15 Apr 2011 21:53:55 +0000 (21:53 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Fri, 15 Apr 2011 21:53:55 +0000 (21:53 +0000)
Third times the charm...

includes/CategoryPage.php

index 3b4d52c..3568d89 100644 (file)
@@ -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 );