From 579bfd985b7e9fd2887db744dc7d9f3903994803 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Sat, 5 Jul 2008 13:13:29 +0000 Subject: [PATCH] moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy. --- includes/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Category.php b/includes/Category.php index 45d2afa2e4..acafc47a70 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -134,9 +134,9 @@ class Category { * @return Category */ public static function newFromRow( $row, $title = null ) { + $cat = new self(); $cat->mTitle = $title; - $cat = new self(); # NOTE: the row often results from a LEFT JOIN on categorylinks. This may result in # all the cat_xxx fields being null, if the category page exists, but nothing -- 2.20.1