diff --git a/phpgwapi/inc/class.historylog.inc.php b/phpgwapi/inc/class.historylog.inc.php index 3eadf2f55f..d30e545121 100644 --- a/phpgwapi/inc/class.historylog.inc.php +++ b/phpgwapi/inc/class.historylog.inc.php @@ -89,7 +89,7 @@ class historylog */ function delete($record_id) { - $where = array('history_appname' => $record_id); + $where = array('history_appname' => $this->appname); if (is_array($record_id) || is_numeric($record_id)) {