mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Coodle: optimized informations in infomail
Automatically generated feedback mails from each participant responding contains now: . clear subject name . name of participant and name of meeting . linked URL goes to specific meeting overview plus . author doesn't get any redundant email anymore (after sending final date to all participants)
This commit is contained in:
+21
-22
@@ -567,6 +567,7 @@ class coodle extends basis_db
|
||||
*/
|
||||
public function getRessourceFromUser($coodle_id, $uid='', $zugangscode='')
|
||||
{
|
||||
|
||||
$qry ="SELECT * FROM campus.tbl_coodle_ressource
|
||||
WHERE coodle_id =".$this->db_add_param($coodle_id, FHC_INTEGER, false);
|
||||
|
||||
@@ -575,36 +576,34 @@ class coodle extends basis_db
|
||||
|
||||
if ($zugangscode != '')
|
||||
$qry.= " AND zugangscode = ".$this->db_add_param($zugangscode, FHC_STRING, false);
|
||||
|
||||
$qry.= ';';
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object($result))
|
||||
{
|
||||
$this->coodle_ressource_id = $row->coodle_ressource_id;
|
||||
$this->coodle_id = $row->coodle_id;
|
||||
$this->uid = $row->uid;
|
||||
$this->ort_kurzbz = $row->ort_kurzbz;
|
||||
$this->email = $row->email;
|
||||
$this->name = $row->name;
|
||||
$this->zugangscode = $row->zugangscode;
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->updateamum = $row->updateamum;
|
||||
$this->updatevon = $row->updatevon;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
$this->errormsg = 'Fehler bei einer Datenbankabfrage';
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($row = $this->db_fetch_object())
|
||||
{
|
||||
$this->coodle_ressource_id = $row->coodle_ressource_id;
|
||||
$this->coodle_id = $row->coodle_id;
|
||||
$this->uid = $row->uid;
|
||||
$this->ort_kurzbz = $row->ort_kurzbz;
|
||||
$this->email = $row->email;
|
||||
$this->name = $row->name;
|
||||
$this->zugangscode = $row->zugangscode;
|
||||
$this->insertamum = $row->insertamum;
|
||||
$this->insertvon = $row->insertvon;
|
||||
$this->updateamum = $row->updateamum;
|
||||
$this->updatevon = $row->updatevon;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = "Fehler bei der Abfrage aufgetreten";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user