From: Roan Kattouw Date: Mon, 26 May 2008 10:51:31 +0000 (+0000) Subject: Fixing timestamp conversion breakage: ignores the fact that !isset($params['timestamp... X-Git-Tag: 1.31.0-rc.0~47378 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=969e965da97da693ec7b3ddfc51ff03645679302;p=lhc%2Fweb%2Fwiklou.git Fixing timestamp conversion breakage: ignores the fact that !isset($params['timestamps']) means we wanna restore everything. --- 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)