diff --git a/libraries/cms/cck/plugin/typo.php b/libraries/cms/cck/plugin/typo.php index 9aa8dd989..6fc2616b8 100644 --- a/libraries/cms/cck/plugin/typo.php +++ b/libraries/cms/cck/plugin/typo.php @@ -42,7 +42,7 @@ public static function g_hasLink( &$field, $typo, $value, &$config = array() ) if ( isset( $field->link ) && $field->link != '' ) { $applyLink = ( isset( $field->link_state ) ) ? $field->link_state : 1; - if ( $applyLink && strpos( $value, ''.$value.''; } } diff --git a/plugins/cck_field_live/url_variable/url_variable.php b/plugins/cck_field_live/url_variable/url_variable.php index 1a905a40b..522bf4924 100644 --- a/plugins/cck_field_live/url_variable/url_variable.php +++ b/plugins/cck_field_live/url_variable/url_variable.php @@ -86,7 +86,11 @@ public function onCCK_Field_LivePrepareForm( &$field, &$value = '', &$config = a // Keep Context if ( /* $config['client'] == 'site' || */ $config['client'] == 'search' /* || $config['client'] == 'admin' */ ) { if ( !isset( $config['context'][$variable] ) ) { - $config['context'][$variable] = (string)$live; + if ( is_array( $live ) ) { + $config['context'][$variable] = implode( ',', $live ); + } else { + $config['context'][$variable] = (string)$live; + } } } }