summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-07-06 12:09:34 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-07-06 12:09:34 +0200
commit4ba05e11e88dd654689b0f6333b1427e03d1b0fe (patch)
tree55ee12d1bf806a6e866a068dfa83ca31f2e2e19d /inc
parentdaf0cdba5471dedf716e23fd4ab172391b6eb069 (diff)
downloadrpg-4ba05e11e88dd654689b0f6333b1427e03d1b0fe.tar.gz
rpg-4ba05e11e88dd654689b0f6333b1427e03d1b0fe.tar.bz2
syntax fix for media_diff
same problem as in f1d7655b8b6288d5b3d63a44412a69c0aa012ed8
Diffstat (limited to 'inc')
-rw-r--r--inc/media.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/media.php b/inc/media.php
index 4bca2e71a..43bbd2560 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -1015,9 +1015,10 @@ function media_diff($image, $ns, $auth, $fromajax = false) {
$rev1 = $INPUT->int('rev');
- if(is_array($INPUT->ref('rev2'))){
- $rev1 = (int) $INPUT->arr('rev2')[0];
- $rev2 = (int) $INPUT->arr('rev2')[1];
+ $rev2 = $INPUT->ref('rev2');
+ if(is_array($rev2)){
+ $rev1 = (int) $rev2[0];
+ $rev2 = (int) $rev2[1];
if(!$rev1){
$rev1 = $rev2;