Commit ac2f9b16 authored by Jeroen's avatar Jeroen

Fixed issue where an empty activity would be registered in the DB

parent fd08d6a0
Pipeline #1343 passed with stage
in 1 second
......@@ -100,7 +100,11 @@ class AddOrganisation{
$stmt->execute();
$stmt->close();
if(self::insertActivities($activity, self::getOrganisationId($post['name']))){
if ( !empty( $activity ) ) {
if(self::insertActivities($activity, self::getOrganisationId($post['name']))){
return true;
}
} else {
return true;
}
......
......@@ -58,7 +58,6 @@
foreach($data['activities'] as $a){
$parsed[] = $o->parseActivity($a);
}
$activities = implode(', ', $parsed);
echo '<li>'.$activities.'</li>';
?>
......
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