minor improvements/comments

This commit is contained in:
Markus Pospischil
2010-05-27 09:23:05 +00:00
parent 8cde60088d
commit c9d1d54e3c
3 changed files with 22 additions and 16 deletions
+2
View File
@@ -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
+4
View File
@@ -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();