From faae75ed40d608d3fd734d5ffc2d786107c367a9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 17 May 2017 11:56:43 +0200 Subject: cron: Clear stucklist on reboot --- inc/property.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'inc/property.inc.php') diff --git a/inc/property.inc.php b/inc/property.inc.php index b33e1bff..0b4ea7b3 100644 --- a/inc/property.inc.php +++ b/inc/property.inc.php @@ -105,6 +105,17 @@ class Property )); } + /** + * Delete entire list with given key. + * + * @param string $key Key of list + * @return int number of items removed + */ + public static function clearList($key) + { + return Database::exec("DELETE FROM property_list WHERE name = :key", compact('key')); + } + /* * Legacy getters/setters */ -- cgit v1.2.3-55-g7522