diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 21:58:46 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-03-05 21:58:46 +0000 |
commit | 0e80bb5e347ff00c6f81627d8e39dafaaa923bc5 (patch) | |
tree | 19e8450aeef463ffe7278e3fb5e8888940113b4a /inc/common.php | |
parent | 17dd401e94c682034b7f3d9164ac3523ab01d825 (diff) | |
download | rpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.gz rpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.bz2 |
use empty() where array values might not be set
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 9a53ee526..36bd32c4f 100644 --- a/inc/common.php +++ b/inc/common.php @@ -191,7 +191,7 @@ function pageinfo() { if($REV) { $revinfo = getRevisionInfo($ID, $REV, 1024); } else { - if(is_array($info['meta']['last_change'])) { + if(!empty($info['meta']['last_change']) && is_array($info['meta']['last_change'])) { $revinfo = $info['meta']['last_change']; } else { $revinfo = getRevisionInfo($ID, $info['lastmod'], 1024); |