diff options
| author | Damien Regad <dregad@mantisbt.org> | 2022-03-29 12:18:18 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2022-03-30 10:38:22 +0200 |
| commit | b6e4a57a16d87541ee134f9c1ab8a9d878a28236 (patch) | |
| tree | d24a5684eee1c77840afa44ddb8d684784065b06 /adodb-memcache.lib.inc.php | |
| parent | 7deaef7e75a956feeb7288e98850066afa405b48 (diff) | |
| download | adodb-b6e4a57a16d87541ee134f9c1ab8a9d878a28236.tar.gz adodb-b6e4a57a16d87541ee134f9c1ab8a9d878a28236.tar.bz2 adodb-b6e4a57a16d87541ee134f9c1ab8a9d878a28236.zip | |
Remove unnecessary ternary operator
Diffstat (limited to 'adodb-memcache.lib.inc.php')
| -rw-r--r-- | adodb-memcache.lib.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adodb-memcache.lib.inc.php b/adodb-memcache.lib.inc.php index 2ccb082f..a9848aa6 100644 --- a/adodb-memcache.lib.inc.php +++ b/adodb-memcache.lib.inc.php @@ -191,7 +191,7 @@ class ADODB_Cache_MemCache foreach ($this->hosts as $controller) { $connector = array_merge($this->serverControllerTemplate, $controller); if ($this->isLibMemcached()) { - $connector['weight'] = $connector['weight'] ? (int)$connector['weight'] : 0; + $connector['weight'] = (int)$connector['weight']; } else { // Cannot use weight in memcache, simply discard $connector['weight'] = 0; |
