mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
minor improvements/comments
This commit is contained in:
@@ -85,6 +85,8 @@ abstract class db extends basis
|
||||
$sql.=($where?' where '.trim($where).' ':'');
|
||||
if ($art=='select')
|
||||
{
|
||||
// FIXME: If $where is e.g. 'orderstatus' because there's a column named orderstatus, this would
|
||||
// fail horribly? Same for the 'where'-stuff above. -MP
|
||||
if (strstr('order',strtolower($where)))
|
||||
$sql.=($order?trim($order).' ':'');
|
||||
else
|
||||
|
||||
@@ -67,6 +67,10 @@ class fachbereich extends basis_db
|
||||
return false;
|
||||
}
|
||||
|
||||
// Don't turn to garbage when getAll is called twice.
|
||||
// TODO: Should most likely also be done in 'loadArray' [and every other file], but I don't know what it's used for.
|
||||
$this->result = array();
|
||||
|
||||
while($row = $this->db_fetch_object())
|
||||
{
|
||||
$fachb_obj = new fachbereich();
|
||||
|
||||
Reference in New Issue
Block a user