Index: trunk/kernel/include/itemdb.php =================================================================== diff -u -r561 -r568 --- trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 561) +++ trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 568) @@ -14,6 +14,8 @@ var $NoResourceId; var $debuglevel; + var $SelectSQL = 'SELECT * FROM %s WHERE %s'; + function clsItemDB() { $this->adodbConnection = &GetADODBConnection(); @@ -476,7 +478,7 @@ $conditions[] = "(`".$id_field[$i]."` = '".$Id[$i]."')"; $i++; } - $sql = sprintf('SELECT * FROM %s WHERE %s', $this->tablename, implode(' AND ', $conditions) ); + $sql = sprintf($this->SelectSQL, $this->tablename, implode(' AND ', $conditions) ); // --------- multiple ids allowed: end -------------------- if($this->debuglevel) echo "Load SQL: $sql
"; $result = $this->adodbConnection->Execute($sql);