mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 16:32:20 +00:00
Bugfix damit bereits akzeptierte Fotos die im nachhinein doch abgelehnt wurden erneut hochgeladen werden können
This commit is contained in:
@@ -51,17 +51,20 @@ class fotostatus extends basis_db
|
||||
public function akzeptiert($person_id)
|
||||
{
|
||||
$qry = "SELECT
|
||||
*
|
||||
fotostatus_kurzbz
|
||||
FROM
|
||||
public.tbl_person_fotostatus
|
||||
WHERE
|
||||
person_id=".$this->db_add_param($person_id)."
|
||||
AND fotostatus_kurzbz='akzeptiert'";
|
||||
ORDER BY datum desc, person_fotostatus_id desc limit 1";
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
if($this->db_num_rows($result)>0)
|
||||
if($row = $this->db_fetch_object($result))
|
||||
{
|
||||
return true;
|
||||
if($row->fotostatus_kurzbz=='akzeptiert')
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user