Commit b1cf3f1d authored by webchick's avatar webchick
Browse files

#558756 by Davy Van Den Bremt: Fix non-by-referenced calls to drupal_static().

parent 9756ad05
......@@ -142,7 +142,7 @@ function list_field_settings_form($field, $instance) {
* Create an array of allowed values for this field.
*/
function list_allowed_values($field) {
$allowed_values = drupal_static(__FUNCTION__, array());
$allowed_values = &drupal_static(__FUNCTION__, array());
if (isset($allowed_values[$field['field_name']])) {
return $allowed_values[$field['field_name']];
......
......@@ -669,7 +669,7 @@ function field_test_fieldable_info_translatable($obj_type = NULL, $translatable
* for that key.
*/
function field_test_memorize($key = NULL, $value = NULL) {
$memorize =& drupal_static(__FUNCTION__, NULL);
$memorize = &drupal_static(__FUNCTION__, NULL);
if (is_null($key)) {
$ret = $memorize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment