From 2be0fd0567c9008d4209c6eb286a9e68c76b9921 Mon Sep 17 00:00:00 2001 From: MorganDawe Date: Fri, 9 May 2014 19:32:32 +0000 Subject: [PATCH] Fixed sizeof, changed to count. --- includes/datastream.version.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(