From 969e965da97da693ec7b3ddfc51ff03645679302 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 26 May 2008 10:51:31 +0000 Subject: [PATCH] Fixing timestamp conversion breakage: ignores the fact that !isset($params['timestamps']) means we wanna restore everything. --- includes/api/ApiUndelete.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 11c5d61998..412e283788 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -61,6 +61,8 @@ class ApiUndelete extends ApiBase { $this->dieUsageMsg(array('invalidtitle', $params['title'])); // Convert timestamps + if(!isset($params['timestamps'])) + $params['timestamps'] = array(); if(!is_array($params['timestamps'])) $params['timestamps'] = array($params['timestamps']); foreach($params['timestamps'] as $i => $ts) -- 2.20.1