Fix PHP testsuite check::get() helper
This was trying to return a reference, but that doesn't actually work for all the things it's used for, and none of the uses require the return value to be a reference.
This commit is contained in:
parent
cf785d7071
commit
785481cc62
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class check {
|
|||
else $_GLOBALS[$var]=$value;
|
||||
}
|
||||
|
||||
static function &get($var) {
|
||||
static function get($var) {
|
||||
$func=$var."_get";
|
||||
if (self::GETSET) return $func();
|
||||
else return $_GLOBALS[$var];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue