From cc4a624880f87c3e8d3b26d887a348b310e5088c Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 25 Sep 2012 17:41:38 +0200 Subject: [PATCH] Fixed wrong column name. --- .../files/lib/system/clipboard/ClipboardHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php index 99beee71ea..67bee17925 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -297,7 +297,7 @@ class ClipboardHandler extends SingletonFactory { public function removeItems($typeID = null) { $conditions = new PreparedStatementConditionBuilder(); $conditions->add("userID = ?", array(WCF::getUser()->userID)); - if ($typeID !== null) $conditions->add("typeID = ?", array($typeID)); + if ($typeID !== null) $conditions->add("objectTypeID = ?", array($typeID)); $sql = "DELETE FROM wcf".WCF_N."_clipboard_item ".$conditions; -- 2.20.1