Skip to content
Snippets Groups Projects
Commit ad1a51da authored by Moritz Strohm's avatar Moritz Strohm
Browse files

TandemPair::createTerminatedTandemPair: no not return a terminated pair if one...

TandemPair::createTerminatedTandemPair: no not return a terminated pair if one of the user-IDs is not set, fixes #13
parent 6eb10c5a
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,9 @@ require_once(__DIR__ . '/TerminatedTandemPair.class.php');
*/
public function createTerminatedTandemPair()
{
if (!$this->request->user_id || !$this->offer->user_id) {
return null;
}
$terminated_pair = new TerminatedTandemPair();
$terminated_pair->requester_user_id = $this->request->user_id;
$terminated_pair->requester_level = $this->request->level;
......
pluginname=TandemPlugin
pluginclassname=TandemPlugin
origin=data-quest
version=1.0.7
version=1.0.8
description=Dieses Plugin ermöglicht es, Sprachtandems innerhalb der Stud.IP Platform zu bilden.
studipMinVersion=4.0
studipMaxVersion=4.99.99
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment