aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-01-27 08:23:02 +0100
committerDamien Regad <dregad@mantisbt.org>2021-01-27 08:28:57 +0100
commit98fe1ac905783debfee6750c64335abf39f6db17 (patch)
treeecace5e4e088e40ff3d38dae1d776dc7aed3941c
parentc9dd70d11a4295044a397a0e8561d9bd53e26104 (diff)
downloaddokuwiki-98fe1ac905783debfee6750c64335abf39f6db17.tar.gz
dokuwiki-98fe1ac905783debfee6750c64335abf39f6db17.zip
Remove ! operator causing unit tests to fail
-rw-r--r--inc/common.php2
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 = '&amp;', $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