The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 755ee44e authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bug -- warning caused by passing empty string instead of empty array.

parent f2437f5d
No related merge requests found
......@@ -85,7 +85,7 @@ class Favorites extends AbstractPlugin
// Add the information to the user's account:
$tags = isset($params['mytags'])
? Tags::parse(trim($params['mytags']))
: '';
: array();
$user->saveResource($resource, $list, $tags, '', false);
}
}
......
......@@ -180,7 +180,8 @@ abstract class AbstractBase
// Add the information to the user's account:
$user->saveResource(
$resource, $list,
isset($params['mytags']) ? Tags::parse(trim($params['mytags'])) : '',
isset($params['mytags'])
? Tags::parse(trim($params['mytags'])) : array(),
isset($params['notes']) ? $params['notes'] : ''
);
}
......
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