dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e95f7
)
Fixing timestamp conversion breakage: ignores the fact that !isset($params['timestamp...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 26 May 2008 10:51:31 +0000
(10:51 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Mon, 26 May 2008 10:51:31 +0000
(10:51 +0000)
includes/api/ApiUndelete.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiUndelete.php
b/includes/api/ApiUndelete.php
index
11c5d61
..
412e283
100644
(file)
--- 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)