Fixing timestamp conversion breakage: ignores the fact that !isset($params['timestamp...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 26 May 2008 10:51:31 +0000 (10:51 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 26 May 2008 10:51:31 +0000 (10:51 +0000)
includes/api/ApiUndelete.php

index 11c5d61..412e283 100644 (file)
@@ -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)