Index: trunk/kernel/include/advsearch.php =================================================================== diff -u -r80 -r271 --- trunk/kernel/include/advsearch.php (.../advsearch.php) (revision 80) +++ trunk/kernel/include/advsearch.php (.../advsearch.php) (revision 271) @@ -159,7 +159,7 @@ $SelectSQL .= " WHERE ".$WhereClause; } $SelectSQL .= " GROUP BY $idField "; - $this->adodbConnection->Execute("DROP TABLE ".$this->ResultTable); + $this->adodbConnection->Execute("DROP TABLE IF EXISTS ".$this->ResultTable); $full_sql = "CREATE TABLE ".$this->ResultTable." ".$indexSQL.$SelectSQL; $this->adodbConnection->Execute($full_sql);