cvs: pear /Translation2 Admin.php

From: Date: Thu, 13 Oct 2005 05:30:47 +0000
Subject: cvs: pear /Translation2 Admin.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35485@lists.php.net to get a copy of this message
ieure Thu Oct 13 01:30:47 2005 EDT Modified files: /pear/Translation2 Admin.php Log: Dont return non-variables by reference. Fixes notices under PHP 5. http://cvs.php.net/diff.php/pear/Translation2/Admin.php?r1=1.16&r2=1.17&ty=u Index: pear/Translation2/Admin.php diff -u pear/Translation2/Admin.php:1.16 pear/Translation2/Admin.php:1.17 --- pear/Translation2/Admin.php:1.16 Thu Sep 8 13:27:35 2005 +++ pear/Translation2/Admin.php Thu Oct 13 01:30:44 2005 @@ -32,7 +32,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: Admin.php,v 1.16 2005/09/08 17:27:35 quipo Exp $ + * @version CVS: $Id: Admin.php,v 1.17 2005/10/13 05:30:44 ieure Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -153,9 +153,11 @@ require_once $decorator_path; if (func_num_args() > 1) { $obj =& func_get_arg(1); - return new $decorator_class($obj); + $ret = new $decorator_class($obj); + return $ret; } else { - return new $decorator_class($this); + $ret = new $decorator_class($this); + return $ret; } } @@ -332,4 +334,4 @@ // }}} } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#35485) next »