Closed (outdated)
Project:
Boost
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2011 at 11:57 UTC
Updated:
25 Mar 2020 at 21:54 UTC
Jump to comment: Most recent
PHP E' Notice (in full)
Notice: Only variable references should be returned by reference in boost_array_find_element_by_key() (line 1740 of /var/www/virtual/peterbowey.com.au/sites/all/modules/boost/boost.admin.inc).
Code Fix / Patch:
-function &boost_array_find_element_by_key($key, &$form) {
+function boost_array_find_element_by_key($key, &$form) {
if (array_key_exists($key, $form)) {
$ret =& $form[$key];
return $ret;
}
foreach ($form as $k => $v) {
if (is_array($v)) {
$ret =& boost_array_find_element_by_key($key, $form[$k]);
if ($ret) {
return $ret;
}
}
}
+ $false = false;
- return FALSE;
+ return $false;
}
Comments
Comment #1
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.