We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5ba2cb07 authored by Evan Prodromou's avatar Evan Prodromou

Better handling of null values in ActivityObject::mimeTypeToObjectType

parent 7229533b
......@@ -896,6 +896,13 @@ class ActivityObject
static function mimeTypeToObjectType($mimeType) {
$ot = null;
// Default
if (empty($mimeType)) {
return self::FILE;
$parts = explode('/', $mimeType);
switch ($parts[0]) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment