Remove duplicated line (in $db->select)

Caused some errors when using $db->select function (news editing for example)
This commit is contained in:
slawkens 2020-09-17 23:17:59 +02:00
parent 602a4aa835
commit f09c129c6d

View File

@ -101,7 +101,6 @@ abstract class OTS_Base_DB extends PDO implements IOTS_DB
for ($i = 0; $i < $count; $i++)
$query.= $this->fieldName($fields[$i]).' = '.$this->quote($values[$i]).' AND ';
$query = substr($query, 0, -4);
$query = substr($query, 0, -4);
if (isset($limit))
$query .=') LIMIT '.$limit.';';