Skip to content

Commit

Permalink
For new International licenses, this array is only 3 elements long. G…
Browse files Browse the repository at this point in the history
…rab the last element.
  • Loading branch information
Jared Whiklo committed Feb 25, 2015
1 parent 952b625 commit 42576b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/includes/creative_commons.inc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function xml_form_elements_creative_commons($element, &$form_state) {
if (!isset($form_state['input'][$element['#name']]) && isset($element['#default_value'])) {
// Reversing this array facilitates value_callback mangling by community.
$default_value_array = array_reverse(explode('/', $element['#default_value']));
$properties = explode('-', $default_value_array[3]);
$properties = explode('-', array_pop($default_value_array));

$commercial = 'y';
$derivatives = 'y';
Expand Down

0 comments on commit 42576b0

Please sign in to comment.