diff options
author | Damien Regad <dregad@mantisbt.org> | 2021-01-27 08:23:02 +0100 |
---|---|---|
committer | Damien Regad <dregad@mantisbt.org> | 2021-01-27 08:28:57 +0100 |
commit | 98fe1ac905783debfee6750c64335abf39f6db17 (patch) | |
tree | ecace5e4e088e40ff3d38dae1d776dc7aed3941c | |
parent | c9dd70d11a4295044a397a0e8561d9bd53e26104 (diff) | |
download | dokuwiki-98fe1ac905783debfee6750c64335abf39f6db17.tar.gz dokuwiki-98fe1ac905783debfee6750c64335abf39f6db17.zip |
Remove ! operator causing unit tests to fail
-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 a43e1db9a..894e1ba05 100644 --- a/inc/common.php +++ b/inc/common.php @@ -589,7 +589,7 @@ function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false) // add token for resized images $w = isset($more['w']) ? $more['w'] : null; $h = isset($more['h']) ? $more['h'] : null; - if(!$w || !$h || $isexternalimage){ + if($w || $h || $isexternalimage){ $more['tok'] = media_get_token($id, $w, $h); } // strip defaults for shorter URLs |