diff options
author | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-05-21 17:05:22 +0000 |
---|---|---|
committer | Fabio Varesano <fax8@13637.no-reply.drupal.org> | 2006-05-21 17:05:22 +0000 |
commit | 862440dac60fb3ec96477478b85cc468b4a28f21 (patch) | |
tree | 84ca3fc7abadb2c9d2fd7128d61299a82648c8cb | |
parent | cd32600c0196e117fff56e96af842bcb77440ef2 (diff) | |
download | video-862440dac60fb3ec96477478b85cc468b4a28f21.tar.gz video-862440dac60fb3ec96477478b85cc468b4a28f21.tar.bz2 |
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
-rw-r--r-- | video.module | 2 |
1 files changed, 1 insertions, 1 deletions
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 .= "<param name=\"$param\" value=\"$value\" />\n"; |