From: Nicolas Dumazet Date: Sat, 5 Jul 2008 13:13:29 +0000 (+0000) Subject: moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy. X-Git-Tag: 1.31.0-rc.0~46725 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=579bfd985b7e9fd2887db744dc7d9f3903994803;p=lhc%2Fweb%2Fwiklou.git moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy. --- 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