We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db18227 commit 5d1a4e3Copy full SHA for 5d1a4e3
1 file changed
src/WebApp/DataModel/LogDAO.php
@@ -29,13 +29,14 @@ public function createTable() {
29
}
30
31
public function deleteAll() {
32
- $sql = 'DELETE * FROM '.$this->database->quoteName($this->tableName);
+ $sql = 'DELETE FROM '.$this->database->quoteName($this->tableName);
33
+ echo "$sql<br>\n";
34
$this->database->query($sql);
35
36
37
public function housekeeping($days = 30) {
38
$this->threshold = new Date(time()-$days*Date::SECONDS_PER_DAY, WFW_TIMEZONE);
- $sql = 'DELETE * FROM '.$this->database->quoteName($this->tableName).' WHERE log_date < '.$this->database->prepareValue($threshold);
39
+ $sql = 'DELETE FROM '.$this->database->quoteName($this->tableName).' WHERE log_date < '.$this->database->prepareValue($threshold);
40
41
42
0 commit comments