summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:04:01 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:04:01 +0100
commit443e135d59e9d227eec818dabf9ee64d7a73d474 (patch)
tree14c649d0a1fade810971d7e6da53471b41484fdf /inc/parser
parent4d8acaacee33f49d51c06f6dae1dbe245018a020 (diff)
downloadrpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.gz
rpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.bz2
replace boolean conditional checks on possibly uninitialized vars with \!empty/empty/isset as appropriate
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/handler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index 63a4104e2..bb284136f 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -653,8 +653,8 @@ function Doku_Handler_Parse_Media($match) {
//parse width and height
if(preg_match('#(\d+)(x(\d+))?#i',$param,$size)){
- ($size[1]) ? $w = $size[1] : $w = null;
- ($size[3]) ? $h = $size[3] : $h = null;
+ !empty($size[1]) ? $w = $size[1] : $w = null;
+ !empty($size[3]) ? $h = $size[3] : $h = null;
} else {
$w = null;
$h = null;