From 1ee3efdf5507343bf84e45255d0a9173d1bebb91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 19 Dec 2007 11:23:25 +0000 Subject: #202184 by Rho_pare: fix drupal_alter() not checking for having an array, broken by #192767 --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 81d350452..5f131ae00 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2845,7 +2845,7 @@ function drupal_alter($type, &$data) { // array. This is somewhat ugly, but is an unavoidable consequence of a flexible // drupal_alter() function, and the limitations of func_get_args(). // @todo: Remove this in Drupal 7. - if (isset($data['__drupal_alter_by_ref'])) { + if (is_array($data) && isset($data['__drupal_alter_by_ref'])) { $by_ref_parameters = $data['__drupal_alter_by_ref']; unset($data['__drupal_alter_by_ref']); } -- cgit v1.2.3