mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Identische Eintraege abfangen
This commit is contained in:
@@ -134,8 +134,9 @@ class zeitaufzeichnung extends basis_db
|
||||
if(!$this->validate())
|
||||
return false;
|
||||
|
||||
// check ob identischer eintrag existiert
|
||||
$check_qry = 'SELECT count(*) from campus.tbl_zeitaufzeichnung where uid='.$this->db_add_param($this->uid).' and start = '.$this->db_add_param($this->start).' and ende = '.$this->db_add_param($this->ende);
|
||||
if($this->db_query($check_qry))
|
||||
if($this->db_query($check_qry) && $this->new)
|
||||
{
|
||||
if($row = $this->db_fetch_object())
|
||||
{
|
||||
@@ -147,6 +148,7 @@ class zeitaufzeichnung extends basis_db
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($this->new)
|
||||
{
|
||||
//Neuen Datensatz einfuegen
|
||||
|
||||
Reference in New Issue
Block a user