From 862440dac60fb3ec96477478b85cc468b4a28f21 Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Sun, 21 May 2006 17:05:22 +0000 Subject: Corrected an incorrect usage of array_key_exists on _video_get_parameters() which was making customizable object params to swf unusable. Thanks to Psicomante (http://drupal.org/user/29518) for pointing this out. This fixes #63495 and 63729 --- video.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.module b/video.module index 11ac105..8532a6f 100644 --- a/video.module +++ b/video.module @@ -1683,7 +1683,7 @@ function _video_get_mime_type($node) { */ function _video_get_parameters($serialized_data) { $serial_data = unserialize($serialized_data); - if(is_array($serial_data) && array_key_exists($serial_data['object_parameters']) && !empty($serial_data['object_parameters'])) { + if(is_array($serial_data) && array_key_exists('object_parameters', $serial_data) && !empty($serial_data['object_parameters'])) { $output = ''; foreach ($serial_data['object_parameters'] as $param => $value) { $output .= "\n"; -- cgit v1.2.3