From 65b25c6437a305d722de0ef60d2186b4484e0184 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 4 Nov 2011 15:19:30 +0100 Subject: [PATCH] Proper error handling for missing list class --- .../files/lib/system/clipboard/ClipboardHandler.class.php | 6 +++++- 1 file changed, 5 insertions(+), 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 25abe78625..0d0283cc51 100644 --- a/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/ClipboardHandler.class.php @@ -174,8 +174,12 @@ class ClipboardHandler extends SingletonFactory { } if (!isset($data[$objectType->objectType])) { + if ($objectType->listclassname == '') { + throw new SystemException("Missing list class for object type '".$objectType->objectType."'"); + } + $data[$objectType->objectType] = array( - 'className' => $objectType->listClassName, + 'className' => $objectType->listclassname, 'objectIDs' => array() ); } -- 2.20.1