Skip to content

Commit ec61867

Browse files
author
m4ikel
committed
Passing-by-reference deprecated
Pass-by-reference has been deprecated as of PHP 5.3.x causing a notice. As of PHP 5.4.x pass-by-reference is being removed. Function definitions alone are enough to correctly pass the argument by reference.
1 parent 85673e9 commit ec61867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/libraries/REST_Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ protected function _check_login($username = '', $password = NULL)
10861086
return $this->_perform_ldap_auth($username, $password);
10871087
}
10881088

1089-
$valid_logins = & $this->config->item('rest_valid_logins');
1089+
$valid_logins = $this->config->item('rest_valid_logins');
10901090

10911091
if ( ! array_key_exists($username, $valid_logins))
10921092
{
@@ -1181,7 +1181,7 @@ protected function _prepare_digest_auth()
11811181
$this->_force_login($uniqid);
11821182
}
11831183

1184-
$valid_logins = & $this->config->item('rest_valid_logins');
1184+
$valid_logins = $this->config->item('rest_valid_logins');
11851185
$valid_pass = $valid_logins[$digest['username']];
11861186

11871187
// This is the valid response expected

0 commit comments

Comments
 (0)