diff --git a/includes/datastream.version.inc b/includes/datastream.version.inc index 6b37335d..0257ae3c 100644 --- a/includes/datastream.version.inc +++ b/includes/datastream.version.inc @@ -259,7 +259,7 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract $str = $mime_detect->getExtension($value); array_push($ext, $str); } - $comma = sizeof($ext) > 1 ? "," : ""; + $comma = count($ext) > 1 ? "," : ""; $ext = array(implode($comma, $ext)); $upload_size = min((int) ini_get('post_max_size'), (int) ini_get('upload_max_filesize')); return array(