Browse Source

Fixed sizeof, changed to count.

pull/499/head
MorganDawe 11 years ago
parent
commit
2be0fd0567
  1. 2
      includes/datastream.version.inc

2
includes/datastream.version.inc

@ -259,7 +259,7 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract
$str = $mime_detect->getExtension($value); $str = $mime_detect->getExtension($value);
array_push($ext, $str); array_push($ext, $str);
} }
$comma = sizeof($ext) > 1 ? "," : ""; $comma = count($ext) > 1 ? "," : "";
$ext = array(implode($comma, $ext)); $ext = array(implode($comma, $ext));
$upload_size = min((int) ini_get('post_max_size'), (int) ini_get('upload_max_filesize')); $upload_size = min((int) ini_get('post_max_size'), (int) ini_get('upload_max_filesize'));
return array( return array(

Loading…
Cancel
Save