summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-25 16:38:51 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-25 16:38:51 +0000
commitb1cf3f1d26f9fd177548f5305f104c2d8d8df90e (patch)
treefd673018856f0ef36557fa039ec2322711e54707
parent9756ad05ec7ae446c4f8d5846cc46cac0a24da4c (diff)
downloadbrdo-b1cf3f1d26f9fd177548f5305f104c2d8d8df90e.tar.gz
brdo-b1cf3f1d26f9fd177548f5305f104c2d8d8df90e.tar.bz2
#558756 by Davy Van Den Bremt: Fix non-by-referenced calls to drupal_static().
-rw-r--r--modules/field/modules/list/list.module2
-rw-r--r--modules/simpletest/tests/field_test.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/modules/list/list.module b/modules/field/modules/list/list.module
index 4f9fbe917..f82727246 100644
--- a/modules/field/modules/list/list.module
+++ b/modules/field/modules/list/list.module
@@ -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']];
diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module
index 8192280ea..54ae3d405 100644
--- a/modules/simpletest/tests/field_test.module
+++ b/modules/simpletest/tests/field_test.module
@@ -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;