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