diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-07-06 11:44:22 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-07-06 11:44:22 +0200 |
commit | f1d7655b8b6288d5b3d63a44412a69c0aa012ed8 (patch) | |
tree | 9e6f0e1c29e12ba3e9056f658b592b3922e574da | |
parent | cefec071bf0633f1422633bdb42089c7acc8240e (diff) | |
download | rpg-f1d7655b8b6288d5b3d63a44412a69c0aa012ed8.tar.gz rpg-f1d7655b8b6288d5b3d63a44412a69c0aa012ed8.tar.bz2 |
fixed error in html_diff()
The used syntax was invalid in PHP < 3.4 and seemed to be wrong logical
as well.
-rw-r--r-- | inc/html.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php index 505474e0d..0afdb1820 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1087,9 +1087,10 @@ function html_diff($text='',$intro=true,$type=null){ // array in rev2. $rev1 = $REV; - if(is_array($INPUT->ref('rev2'))){ - $rev1 = (int) $INPUT->int('rev2')[0]; - $rev2 = (int) $INPUT->int('rev2')[1]; + $rev2 = $INPUT->ref('rev2'); + if(is_array($rev2)){ + $rev1 = (int) $rev2[0]; + $rev2 = (int) $rev2[1]; if(!$rev1){ $rev1 = $rev2; |